Skip to content

Commit 73faf5f

Browse files
add updates
1 parent ea47625 commit 73faf5f

2 files changed

Lines changed: 62 additions & 10 deletions

File tree

src/Joygrid/JoygridClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
* @method \GuzzleHttp\Promise\Promise deleteMemoryAsync(array $args = [])
5151
* @method \Jdcloud\Result describeEvents(array $args = [])
5252
* @method \GuzzleHttp\Promise\Promise describeEventsAsync(array $args = [])
53+
* @method \Jdcloud\Result createEvent(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise createEventAsync(array $args = [])
5355
* @method \Jdcloud\Result describeEvent(array $args = [])
5456
* @method \GuzzleHttp\Promise\Promise describeEventAsync(array $args = [])
5557
* @method \Jdcloud\Result deleteEvent(array $args = [])

src/data/joygrid/v1/api-2.json.php

Lines changed: 60 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,21 @@
140140
'DescribeEvents' => [
141141
'name' => 'DescribeEvents',
142142
'http' => [
143-
'method' => 'POST',
143+
'method' => 'GET',
144144
'requestUri' => '/v1/regions/{regionId}/memories/{memoryId}/events',
145145
],
146146
'input' => [ 'shape' => 'DescribeEventsRequestShape', ],
147147
'output' => [ 'shape' => 'DescribeEventsResponseShape', ],
148148
],
149+
'CreateEvent' => [
150+
'name' => 'CreateEvent',
151+
'http' => [
152+
'method' => 'POST',
153+
'requestUri' => '/v1/regions/{regionId}/memories/{memoryId}/events',
154+
],
155+
'input' => [ 'shape' => 'CreateEventRequestShape', ],
156+
'output' => [ 'shape' => 'CreateEventResponseShape', ],
157+
],
149158
'DescribeEvent' => [
150159
'name' => 'DescribeEvent',
151160
'http' => [
@@ -222,7 +231,7 @@
222231
'name' => 'InvokeRuntime',
223232
'http' => [
224233
'method' => 'POST',
225-
'requestUri' => '/v1/regions/{regionId}/runtimes/{agentRuntimeId}/invocations/{proxyPath}',
234+
'requestUri' => '/v1/regions/{regionId}/runtimes/{agentRuntimeId}/invocations',
226235
],
227236
'input' => [ 'shape' => 'InvokeRuntimeRequestShape', ],
228237
'output' => [ 'shape' => 'InvokeRuntimeResponseShape', ],
@@ -451,7 +460,11 @@
451460
'CreateCodeInterpreterRequestShape' => [
452461
'type' => 'structure',
453462
'members' => [
454-
'body' => [ 'shape' => 'CreateCodeInterpreterSpec', ],
463+
'erpAccount' => [ 'type' => 'string', 'locationName' => 'erpAccount', ],
464+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
465+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
466+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
467+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
455468
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
456469
],
457470
],
@@ -466,7 +479,11 @@
466479
'type' => 'structure',
467480
'members' => [
468481
'codeInterpreterId' => [ 'type' => 'string', 'locationName' => 'codeInterpreterId', ],
469-
'body' => [ 'shape' => 'UpdateCodeInterpreterSpec', ],
482+
'erpAccount' => [ 'type' => 'string', 'locationName' => 'erpAccount', ],
483+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
484+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
485+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
486+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
470487
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
471488
],
472489
],
@@ -592,10 +609,20 @@
592609
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
593610
],
594611
],
612+
'CreateEventResultShape' => [
613+
'type' => 'structure',
614+
'members' => [
615+
'events' => [ 'type' => 'list', 'member' => [ 'shape' => 'EventResponseSpec', ], ],
616+
],
617+
],
595618
'CreateMemoryRequestShape' => [
596619
'type' => 'structure',
597620
'members' => [
598-
'body' => [ 'shape' => 'CreateMemorySpec', ],
621+
'erpAccount' => [ 'type' => 'string', 'locationName' => 'erpAccount', ],
622+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
623+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
624+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
625+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
599626
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
600627
],
601628
],
@@ -643,7 +670,9 @@
643670
'type' => 'structure',
644671
'members' => [
645672
'memoryId' => [ 'type' => 'string', 'locationName' => 'memoryId', ],
646-
'body' => [ 'shape' => 'SearchEventsSpec', ],
673+
'actor' => [ 'type' => 'string', 'locationName' => 'actor', ],
674+
'query' => [ 'type' => 'string', 'locationName' => 'query', ],
675+
'sessionId' => [ 'type' => 'string', 'locationName' => 'sessionId', ],
647676
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
648677
],
649678
],
@@ -664,11 +693,29 @@
664693
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
665694
],
666695
],
696+
'CreateEventRequestShape' => [
697+
'type' => 'structure',
698+
'members' => [
699+
'erpAccount' => [ 'type' => 'string', 'locationName' => 'erpAccount', ],
700+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
701+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
702+
'actor' => [ 'type' => 'string', 'locationName' => 'actor', ],
703+
'infer' => [ 'type' => 'boolean', 'locationName' => 'infer', ],
704+
'memoryId' => [ 'type' => 'string', 'locationName' => 'memoryId', ],
705+
'messages' => [ 'type' => 'list', 'member' => [ 'shape' => 'Message', ], ],
706+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
707+
'sessionId' => [ 'type' => 'string', 'locationName' => 'sessionId', ],
708+
],
709+
],
667710
'UpdateMemoryRequestShape' => [
668711
'type' => 'structure',
669712
'members' => [
670713
'memoryId' => [ 'type' => 'string', 'locationName' => 'memoryId', ],
671-
'body' => [ 'shape' => 'UpdateMemorySpec', ],
714+
'erpAccount' => [ 'type' => 'string', 'locationName' => 'erpAccount', ],
715+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
716+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
717+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
718+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
672719
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
673720
],
674721
],
@@ -769,7 +816,9 @@
769816
'CreateRuntimeRequestShape' => [
770817
'type' => 'structure',
771818
'members' => [
772-
'body' => [ 'shape' => 'CreateRuntimeSpec', ],
819+
'agentRuntimeArtifact' => [ 'shape' => 'AgentRuntimeArtifact', ],
820+
'agentRuntimeName' => [ 'type' => 'string', 'locationName' => 'agentRuntimeName', ],
821+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
773822
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
774823
],
775824
],
@@ -789,7 +838,9 @@
789838
'UpdateRuntimeRequestShape' => [
790839
'type' => 'structure',
791840
'members' => [
792-
'body' => [ 'shape' => 'CreateRuntimeSpec', ],
841+
'agentRuntimeArtifact' => [ 'shape' => 'AgentRuntimeArtifact', ],
842+
'agentRuntimeName' => [ 'type' => 'string', 'locationName' => 'agentRuntimeName', ],
843+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
793844
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
794845
'agentRuntimeId' => [ 'type' => 'string', 'locationName' => 'agentRuntimeId', ],
795846
],
@@ -845,7 +896,6 @@
845896
'body' => [ 'type' => '', 'locationName' => 'body', ],
846897
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
847898
'agentRuntimeId' => [ 'type' => 'string', 'locationName' => 'agentRuntimeId', ],
848-
'proxyPath' => [ 'type' => 'string', 'locationName' => 'proxyPath', ],
849899
],
850900
],
851901
],

0 commit comments

Comments
 (0)