sandbox0 0.4.0 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/apispec/src/apis/FilesApi.d.ts +16 -1
  2. package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
  3. package/dist/apispec/src/apis/FilesApi.js +47 -1
  4. package/dist/apispec/src/apis/FunctionsApi.d.ts +106 -7
  5. package/dist/apispec/src/apis/FunctionsApi.d.ts.map +1 -1
  6. package/dist/apispec/src/apis/FunctionsApi.js +292 -7
  7. package/dist/apispec/src/apis/SandboxesApi.d.ts +1 -0
  8. package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
  9. package/dist/apispec/src/apis/SandboxesApi.js +2 -1
  10. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts +6 -0
  11. package/dist/apispec/src/models/CreateSandboxVolumeRequest.d.ts.map +1 -1
  12. package/dist/apispec/src/models/CreateSandboxVolumeRequest.js +2 -0
  13. package/dist/apispec/src/models/EgressAuthProtocol.d.ts +8 -8
  14. package/dist/apispec/src/models/EgressAuthProtocol.js +8 -8
  15. package/dist/apispec/src/models/EgressProxyPolicy.d.ts +46 -0
  16. package/dist/apispec/src/models/EgressProxyPolicy.d.ts.map +1 -0
  17. package/dist/apispec/src/models/EgressProxyPolicy.js +50 -0
  18. package/dist/apispec/src/models/EgressProxyType.d.ts +25 -0
  19. package/dist/apispec/src/models/EgressProxyType.d.ts.map +1 -0
  20. package/dist/apispec/src/models/EgressProxyType.js +42 -0
  21. package/dist/apispec/src/models/Function.d.ts +19 -0
  22. package/dist/apispec/src/models/Function.d.ts.map +1 -1
  23. package/dist/apispec/src/models/Function.js +11 -0
  24. package/dist/apispec/src/models/FunctionAutoscaling.d.ts +51 -0
  25. package/dist/apispec/src/models/FunctionAutoscaling.d.ts.map +1 -0
  26. package/dist/apispec/src/models/FunctionAutoscaling.js +55 -0
  27. package/dist/apispec/src/models/FunctionCreateRequest.d.ts +7 -0
  28. package/dist/apispec/src/models/FunctionCreateRequest.d.ts.map +1 -1
  29. package/dist/apispec/src/models/FunctionCreateRequest.js +3 -0
  30. package/dist/apispec/src/models/FunctionEnvRef.d.ts +39 -0
  31. package/dist/apispec/src/models/FunctionEnvRef.d.ts.map +1 -0
  32. package/dist/apispec/src/models/FunctionEnvRef.js +47 -0
  33. package/dist/apispec/src/models/FunctionRecord.d.ts +19 -0
  34. package/dist/apispec/src/models/FunctionRecord.d.ts.map +1 -1
  35. package/dist/apispec/src/models/FunctionRecord.js +11 -0
  36. package/dist/apispec/src/models/FunctionRestoreMount.d.ts +13 -1
  37. package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +1 -1
  38. package/dist/apispec/src/models/FunctionRestoreMount.js +4 -0
  39. package/dist/apispec/src/models/FunctionRevision.d.ts +30 -8
  40. package/dist/apispec/src/models/FunctionRevision.d.ts.map +1 -1
  41. package/dist/apispec/src/models/FunctionRevision.js +14 -10
  42. package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts +26 -0
  43. package/dist/apispec/src/models/FunctionRevisionInputSourceType.d.ts.map +1 -0
  44. package/dist/apispec/src/models/FunctionRevisionInputSourceType.js +43 -0
  45. package/dist/apispec/src/models/FunctionRevisionMount.d.ts +66 -0
  46. package/dist/apispec/src/models/FunctionRevisionMount.d.ts.map +1 -0
  47. package/dist/apispec/src/models/FunctionRevisionMount.js +61 -0
  48. package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts +72 -0
  49. package/dist/apispec/src/models/FunctionRevisionMountSource.d.ts.map +1 -0
  50. package/dist/apispec/src/models/FunctionRevisionMountSource.js +61 -0
  51. package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts +27 -0
  52. package/dist/apispec/src/models/FunctionRevisionSourceType.d.ts.map +1 -0
  53. package/dist/apispec/src/models/FunctionRevisionSourceType.js +44 -0
  54. package/dist/apispec/src/models/FunctionRevisionSpec.d.ts +61 -0
  55. package/dist/apispec/src/models/FunctionRevisionSpec.d.ts.map +1 -0
  56. package/dist/apispec/src/models/FunctionRevisionSpec.js +57 -0
  57. package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts +107 -0
  58. package/dist/apispec/src/models/FunctionRuntimeEvent.d.ts.map +1 -0
  59. package/dist/apispec/src/models/FunctionRuntimeEvent.js +81 -0
  60. package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts +131 -0
  61. package/dist/apispec/src/models/FunctionRuntimeInstance.d.ts.map +1 -0
  62. package/dist/apispec/src/models/FunctionRuntimeInstance.js +93 -0
  63. package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts +28 -0
  64. package/dist/apispec/src/models/FunctionRuntimeInstanceState.d.ts.map +1 -0
  65. package/dist/apispec/src/models/FunctionRuntimeInstanceState.js +45 -0
  66. package/dist/apispec/src/models/FunctionRuntimePhase.d.ts +31 -0
  67. package/dist/apispec/src/models/FunctionRuntimePhase.d.ts.map +1 -0
  68. package/dist/apispec/src/models/FunctionRuntimePhase.js +48 -0
  69. package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts +28 -0
  70. package/dist/apispec/src/models/FunctionRuntimeReadinessState.d.ts.map +1 -0
  71. package/dist/apispec/src/models/FunctionRuntimeReadinessState.js +45 -0
  72. package/dist/apispec/src/models/FunctionRuntimeState.d.ts +27 -0
  73. package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +1 -0
  74. package/dist/apispec/src/models/FunctionRuntimeState.js +44 -0
  75. package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +123 -0
  76. package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +1 -0
  77. package/dist/apispec/src/models/FunctionRuntimeStatus.js +89 -0
  78. package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts +39 -0
  79. package/dist/apispec/src/models/FunctionSandboxServiceSource.d.ts.map +1 -0
  80. package/dist/apispec/src/models/FunctionSandboxServiceSource.js +47 -0
  81. package/dist/apispec/src/models/FunctionSourceRequest.d.ts +33 -3
  82. package/dist/apispec/src/models/FunctionSourceRequest.d.ts.map +1 -1
  83. package/dist/apispec/src/models/FunctionSourceRequest.js +13 -6
  84. package/dist/apispec/src/models/FunctionStaticAsset.d.ts +45 -0
  85. package/dist/apispec/src/models/FunctionStaticAsset.d.ts.map +1 -0
  86. package/dist/apispec/src/models/FunctionStaticAsset.js +49 -0
  87. package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +46 -0
  88. package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +1 -0
  89. package/dist/apispec/src/models/FunctionUpdateRequest.js +46 -0
  90. package/dist/apispec/src/models/MCPProtocolRule.d.ts +34 -0
  91. package/dist/apispec/src/models/MCPProtocolRule.d.ts.map +1 -0
  92. package/dist/apispec/src/models/MCPProtocolRule.js +42 -0
  93. package/dist/apispec/src/models/MCPToolPolicy.d.ts +39 -0
  94. package/dist/apispec/src/models/MCPToolPolicy.d.ts.map +1 -0
  95. package/dist/apispec/src/models/MCPToolPolicy.js +43 -0
  96. package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +16 -0
  97. package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
  98. package/dist/apispec/src/models/NetworkEgressPolicy.js +6 -0
  99. package/dist/apispec/src/models/ProtocolRule.d.ts +74 -0
  100. package/dist/apispec/src/models/ProtocolRule.d.ts.map +1 -0
  101. package/dist/apispec/src/models/ProtocolRule.js +60 -0
  102. package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts +25 -0
  103. package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts.map +1 -0
  104. package/dist/apispec/src/models/ProtocolRuleProtocol.js +42 -0
  105. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +3 -3
  106. package/dist/apispec/src/models/SandboxPowerState.d.ts +2 -2
  107. package/dist/apispec/src/models/SandboxPowerState.js +2 -2
  108. package/dist/apispec/src/models/SandboxSummary.d.ts +1 -0
  109. package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
  110. package/dist/apispec/src/models/SandboxSummary.js +2 -1
  111. package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +40 -0
  112. package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +1 -0
  113. package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +46 -0
  114. package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +34 -0
  115. package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +1 -0
  116. package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +44 -0
  117. package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +40 -0
  118. package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +1 -0
  119. package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +46 -0
  120. package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +34 -0
  121. package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +1 -0
  122. package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +44 -0
  123. package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +40 -0
  124. package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +1 -0
  125. package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +46 -0
  126. package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +34 -0
  127. package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +1 -0
  128. package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +44 -0
  129. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts +40 -0
  130. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts.map +1 -0
  131. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.js +46 -0
  132. package/dist/apispec/src/models/TrafficRuleAppProtocol.d.ts +10 -10
  133. package/dist/apispec/src/models/TrafficRuleAppProtocol.js +10 -10
  134. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts +51 -0
  135. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts.map +1 -0
  136. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.js +55 -0
  137. package/dist/apispec/src/models/index.d.ts +31 -0
  138. package/dist/apispec/src/models/index.d.ts.map +1 -1
  139. package/dist/apispec/src/models/index.js +31 -0
  140. package/dist/apispec_compat.d.ts +226 -20
  141. package/dist/apispec_compat.d.ts.map +1 -1
  142. package/dist/index.d.ts +2 -2
  143. package/dist/index.d.ts.map +1 -1
  144. package/dist/index.js +1 -1
  145. package/dist/resources/functions.d.ts +14 -1
  146. package/dist/resources/functions.d.ts.map +1 -1
  147. package/dist/resources/functions.js +82 -3
  148. package/dist/resources/volumes.d.ts +2 -1
  149. package/dist/resources/volumes.d.ts.map +1 -1
  150. package/dist/resources/volumes.js +9 -0
  151. package/package.json +1 -1
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FunctionRuntimeEvent } from './FunctionRuntimeEvent.js';
13
+ import type { FunctionRuntimePhase } from './FunctionRuntimePhase.js';
14
+ import type { FunctionRuntimeInstance } from './FunctionRuntimeInstance.js';
15
+ import type { FunctionRuntimeReadinessState } from './FunctionRuntimeReadinessState.js';
16
+ import type { FunctionAutoscaling } from './FunctionAutoscaling.js';
17
+ import type { FunctionRuntimeState } from './FunctionRuntimeState.js';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface FunctionRuntimeStatus
22
+ */
23
+ export interface FunctionRuntimeStatus {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FunctionRuntimeStatus
28
+ */
29
+ functionId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FunctionRuntimeStatus
34
+ */
35
+ revisionId: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof FunctionRuntimeStatus
40
+ */
41
+ revisionNumber: number;
42
+ /**
43
+ *
44
+ * @type {FunctionRuntimeState}
45
+ * @memberof FunctionRuntimeStatus
46
+ */
47
+ state: FunctionRuntimeState;
48
+ /**
49
+ *
50
+ * @type {FunctionRuntimePhase}
51
+ * @memberof FunctionRuntimeStatus
52
+ */
53
+ phase: FunctionRuntimePhase;
54
+ /**
55
+ *
56
+ * @type {FunctionAutoscaling}
57
+ * @memberof FunctionRuntimeStatus
58
+ */
59
+ autoscaling: FunctionAutoscaling;
60
+ /**
61
+ *
62
+ * @type {FunctionRuntimeReadinessState}
63
+ * @memberof FunctionRuntimeStatus
64
+ */
65
+ readinessState: FunctionRuntimeReadinessState;
66
+ /**
67
+ * Compatibility summary for one current restored runtime sandbox, if one exists. Use instances for the full runtime pool.
68
+ * @type {string}
69
+ * @memberof FunctionRuntimeStatus
70
+ */
71
+ runtimeSandboxId?: string;
72
+ /**
73
+ * Compatibility summary for one current runtime process context, if one exists. Use instances for the full runtime pool.
74
+ * @type {string}
75
+ * @memberof FunctionRuntimeStatus
76
+ */
77
+ runtimeContextId?: string;
78
+ /**
79
+ * Last time the runtime mapping was updated.
80
+ * @type {Date}
81
+ * @memberof FunctionRuntimeStatus
82
+ */
83
+ runtimeUpdatedAt?: Date;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof FunctionRuntimeStatus
88
+ */
89
+ startupDurationMs?: number;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof FunctionRuntimeStatus
94
+ */
95
+ lastError?: string;
96
+ /**
97
+ *
98
+ * @type {Date}
99
+ * @memberof FunctionRuntimeStatus
100
+ */
101
+ lastErrorAt?: Date;
102
+ /**
103
+ *
104
+ * @type {Array<FunctionRuntimeInstance>}
105
+ * @memberof FunctionRuntimeStatus
106
+ */
107
+ instances?: Array<FunctionRuntimeInstance>;
108
+ /**
109
+ *
110
+ * @type {Array<FunctionRuntimeEvent>}
111
+ * @memberof FunctionRuntimeStatus
112
+ */
113
+ recentEvents?: Array<FunctionRuntimeEvent>;
114
+ }
115
+ /**
116
+ * Check if a given object implements the FunctionRuntimeStatus interface.
117
+ */
118
+ export declare function instanceOfFunctionRuntimeStatus(value: object): value is FunctionRuntimeStatus;
119
+ export declare function FunctionRuntimeStatusFromJSON(json: any): FunctionRuntimeStatus;
120
+ export declare function FunctionRuntimeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionRuntimeStatus;
121
+ export declare function FunctionRuntimeStatusToJSON(json: any): FunctionRuntimeStatus;
122
+ export declare function FunctionRuntimeStatusToJSONTyped(value?: FunctionRuntimeStatus | null, ignoreDiscriminator?: boolean): any;
123
+ //# sourceMappingURL=FunctionRuntimeStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionRuntimeStatus.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionRuntimeStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAOrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;;;OAIG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;;;OAIG;IACH,WAAW,EAAE,mBAAmB,CAAC;IACjC;;;;OAIG;IACH,cAAc,EAAE,6BAA6B,CAAC;IAC9C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CAC9C;AAID;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAS7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAsBjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAuBhI"}
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { FunctionRuntimeEventFromJSON, FunctionRuntimeEventToJSON, } from './FunctionRuntimeEvent.js';
15
+ import { FunctionRuntimePhaseFromJSON, FunctionRuntimePhaseToJSON, } from './FunctionRuntimePhase.js';
16
+ import { FunctionRuntimeInstanceFromJSON, FunctionRuntimeInstanceToJSON, } from './FunctionRuntimeInstance.js';
17
+ import { FunctionRuntimeReadinessStateFromJSON, FunctionRuntimeReadinessStateToJSON, } from './FunctionRuntimeReadinessState.js';
18
+ import { FunctionAutoscalingFromJSON, FunctionAutoscalingToJSON, } from './FunctionAutoscaling.js';
19
+ import { FunctionRuntimeStateFromJSON, FunctionRuntimeStateToJSON, } from './FunctionRuntimeState.js';
20
+ /**
21
+ * Check if a given object implements the FunctionRuntimeStatus interface.
22
+ */
23
+ export function instanceOfFunctionRuntimeStatus(value) {
24
+ if (!('functionId' in value) || value['functionId'] === undefined)
25
+ return false;
26
+ if (!('revisionId' in value) || value['revisionId'] === undefined)
27
+ return false;
28
+ if (!('revisionNumber' in value) || value['revisionNumber'] === undefined)
29
+ return false;
30
+ if (!('state' in value) || value['state'] === undefined)
31
+ return false;
32
+ if (!('phase' in value) || value['phase'] === undefined)
33
+ return false;
34
+ if (!('autoscaling' in value) || value['autoscaling'] === undefined)
35
+ return false;
36
+ if (!('readinessState' in value) || value['readinessState'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function FunctionRuntimeStatusFromJSON(json) {
41
+ return FunctionRuntimeStatusFromJSONTyped(json, false);
42
+ }
43
+ export function FunctionRuntimeStatusFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'functionId': json['function_id'],
49
+ 'revisionId': json['revision_id'],
50
+ 'revisionNumber': json['revision_number'],
51
+ 'state': FunctionRuntimeStateFromJSON(json['state']),
52
+ 'phase': FunctionRuntimePhaseFromJSON(json['phase']),
53
+ 'autoscaling': FunctionAutoscalingFromJSON(json['autoscaling']),
54
+ 'readinessState': FunctionRuntimeReadinessStateFromJSON(json['readiness_state']),
55
+ 'runtimeSandboxId': json['runtime_sandbox_id'] == null ? undefined : json['runtime_sandbox_id'],
56
+ 'runtimeContextId': json['runtime_context_id'] == null ? undefined : json['runtime_context_id'],
57
+ 'runtimeUpdatedAt': json['runtime_updated_at'] == null ? undefined : (new Date(json['runtime_updated_at'])),
58
+ 'startupDurationMs': json['startup_duration_ms'] == null ? undefined : json['startup_duration_ms'],
59
+ 'lastError': json['last_error'] == null ? undefined : json['last_error'],
60
+ 'lastErrorAt': json['last_error_at'] == null ? undefined : (new Date(json['last_error_at'])),
61
+ 'instances': json['instances'] == null ? undefined : (json['instances'].map(FunctionRuntimeInstanceFromJSON)),
62
+ 'recentEvents': json['recent_events'] == null ? undefined : (json['recent_events'].map(FunctionRuntimeEventFromJSON)),
63
+ };
64
+ }
65
+ export function FunctionRuntimeStatusToJSON(json) {
66
+ return FunctionRuntimeStatusToJSONTyped(json, false);
67
+ }
68
+ export function FunctionRuntimeStatusToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'function_id': value['functionId'],
74
+ 'revision_id': value['revisionId'],
75
+ 'revision_number': value['revisionNumber'],
76
+ 'state': FunctionRuntimeStateToJSON(value['state']),
77
+ 'phase': FunctionRuntimePhaseToJSON(value['phase']),
78
+ 'autoscaling': FunctionAutoscalingToJSON(value['autoscaling']),
79
+ 'readiness_state': FunctionRuntimeReadinessStateToJSON(value['readinessState']),
80
+ 'runtime_sandbox_id': value['runtimeSandboxId'],
81
+ 'runtime_context_id': value['runtimeContextId'],
82
+ 'runtime_updated_at': value['runtimeUpdatedAt'] == null ? value['runtimeUpdatedAt'] : value['runtimeUpdatedAt'].toISOString(),
83
+ 'startup_duration_ms': value['startupDurationMs'],
84
+ 'last_error': value['lastError'],
85
+ 'last_error_at': value['lastErrorAt'] == null ? value['lastErrorAt'] : value['lastErrorAt'].toISOString(),
86
+ 'instances': value['instances'] == null ? undefined : (value['instances'].map(FunctionRuntimeInstanceToJSON)),
87
+ 'recent_events': value['recentEvents'] == null ? undefined : (value['recentEvents'].map(FunctionRuntimeEventToJSON)),
88
+ };
89
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FunctionSandboxServiceSource
16
+ */
17
+ export interface FunctionSandboxServiceSource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FunctionSandboxServiceSource
22
+ */
23
+ sandboxId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FunctionSandboxServiceSource
28
+ */
29
+ serviceId: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FunctionSandboxServiceSource interface.
33
+ */
34
+ export declare function instanceOfFunctionSandboxServiceSource(value: object): value is FunctionSandboxServiceSource;
35
+ export declare function FunctionSandboxServiceSourceFromJSON(json: any): FunctionSandboxServiceSource;
36
+ export declare function FunctionSandboxServiceSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionSandboxServiceSource;
37
+ export declare function FunctionSandboxServiceSourceToJSON(json: any): FunctionSandboxServiceSource;
38
+ export declare function FunctionSandboxServiceSourceToJSONTyped(value?: FunctionSandboxServiceSource | null, ignoreDiscriminator?: boolean): any;
39
+ //# sourceMappingURL=FunctionSandboxServiceSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionSandboxServiceSource.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionSandboxServiceSource.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAI3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"}
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the FunctionSandboxServiceSource interface.
16
+ */
17
+ export function instanceOfFunctionSandboxServiceSource(value) {
18
+ if (!('sandboxId' in value) || value['sandboxId'] === undefined)
19
+ return false;
20
+ if (!('serviceId' in value) || value['serviceId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function FunctionSandboxServiceSourceFromJSON(json) {
25
+ return FunctionSandboxServiceSourceFromJSONTyped(json, false);
26
+ }
27
+ export function FunctionSandboxServiceSourceFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'sandboxId': json['sandbox_id'],
33
+ 'serviceId': json['service_id'],
34
+ };
35
+ }
36
+ export function FunctionSandboxServiceSourceToJSON(json) {
37
+ return FunctionSandboxServiceSourceToJSONTyped(json, false);
38
+ }
39
+ export function FunctionSandboxServiceSourceToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'sandbox_id': value['sandboxId'],
45
+ 'service_id': value['serviceId'],
46
+ };
47
+ }
@@ -9,7 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { FunctionRevisionSpec } from './FunctionRevisionSpec.js';
13
+ import type { FunctionSandboxServiceSource } from './FunctionSandboxServiceSource.js';
14
+ import type { FunctionRevisionInputSourceType } from './FunctionRevisionInputSourceType.js';
12
15
  /**
16
+ * Source used to create a function revision. Omitting type with sandbox_id and service_id keeps the sandbox-service shortcut shape; internally it is compiled into an immutable FunctionRevisionSpec.
13
17
  *
14
18
  * @export
15
19
  * @interface FunctionSourceRequest
@@ -17,16 +21,42 @@
17
21
  export interface FunctionSourceRequest {
18
22
  /**
19
23
  *
24
+ * @type {FunctionRevisionInputSourceType}
25
+ * @memberof FunctionSourceRequest
26
+ */
27
+ type?: FunctionRevisionInputSourceType;
28
+ /**
29
+ * Compatibility shortcut for type=sandbox_service.
20
30
  * @type {string}
21
31
  * @memberof FunctionSourceRequest
22
32
  */
23
- sandboxId: string;
33
+ sandboxId?: string;
24
34
  /**
25
- *
35
+ * Compatibility shortcut for type=sandbox_service.
26
36
  * @type {string}
27
37
  * @memberof FunctionSourceRequest
28
38
  */
29
- serviceId: string;
39
+ serviceId?: string;
40
+ /**
41
+ *
42
+ * @type {FunctionSandboxServiceSource}
43
+ * @memberof FunctionSourceRequest
44
+ */
45
+ sandboxService?: FunctionSandboxServiceSource;
46
+ /**
47
+ *
48
+ * @type {FunctionRevisionSpec}
49
+ * @memberof FunctionSourceRequest
50
+ */
51
+ revisionSpec?: FunctionRevisionSpec;
52
+ /**
53
+ * Optional non-execution metadata describing how the revision spec was produced.
54
+ * @type {{ [key: string]: any; }}
55
+ * @memberof FunctionSourceRequest
56
+ */
57
+ provenance?: {
58
+ [key: string]: any;
59
+ };
30
60
  }
31
61
  /**
32
62
  * Check if a given object implements the FunctionSourceRequest interface.
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionSourceRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionSourceRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CASjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhI"}
1
+ {"version":3,"file":"FunctionSourceRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionSourceRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOnE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAOnF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAQzF;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,+BAA+B,CAAC;IACvC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,4BAA4B,CAAC;IAC9C;;;;OAIG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;CACxC;AAID;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAajH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchI"}
@@ -11,14 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { FunctionRevisionSpecFromJSON, FunctionRevisionSpecToJSON, } from './FunctionRevisionSpec.js';
15
+ import { FunctionSandboxServiceSourceFromJSON, FunctionSandboxServiceSourceToJSON, } from './FunctionSandboxServiceSource.js';
16
+ import { FunctionRevisionInputSourceTypeFromJSON, FunctionRevisionInputSourceTypeToJSON, } from './FunctionRevisionInputSourceType.js';
14
17
  /**
15
18
  * Check if a given object implements the FunctionSourceRequest interface.
16
19
  */
17
20
  export function instanceOfFunctionSourceRequest(value) {
18
- if (!('sandboxId' in value) || value['sandboxId'] === undefined)
19
- return false;
20
- if (!('serviceId' in value) || value['serviceId'] === undefined)
21
- return false;
22
21
  return true;
23
22
  }
24
23
  export function FunctionSourceRequestFromJSON(json) {
@@ -29,8 +28,12 @@ export function FunctionSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
29
28
  return json;
30
29
  }
31
30
  return {
32
- 'sandboxId': json['sandbox_id'],
33
- 'serviceId': json['service_id'],
31
+ 'type': json['type'] == null ? undefined : FunctionRevisionInputSourceTypeFromJSON(json['type']),
32
+ 'sandboxId': json['sandbox_id'] == null ? undefined : json['sandbox_id'],
33
+ 'serviceId': json['service_id'] == null ? undefined : json['service_id'],
34
+ 'sandboxService': json['sandbox_service'] == null ? undefined : FunctionSandboxServiceSourceFromJSON(json['sandbox_service']),
35
+ 'revisionSpec': json['revision_spec'] == null ? undefined : FunctionRevisionSpecFromJSON(json['revision_spec']),
36
+ 'provenance': json['provenance'] == null ? undefined : json['provenance'],
34
37
  };
35
38
  }
36
39
  export function FunctionSourceRequestToJSON(json) {
@@ -41,7 +44,11 @@ export function FunctionSourceRequestToJSONTyped(value, ignoreDiscriminator = fa
41
44
  return value;
42
45
  }
43
46
  return {
47
+ 'type': FunctionRevisionInputSourceTypeToJSON(value['type']),
44
48
  'sandbox_id': value['sandboxId'],
45
49
  'service_id': value['serviceId'],
50
+ 'sandbox_service': FunctionSandboxServiceSourceToJSON(value['sandboxService']),
51
+ 'revision_spec': FunctionRevisionSpecToJSON(value['revisionSpec']),
52
+ 'provenance': value['provenance'],
46
53
  };
47
54
  }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FunctionStaticAsset
16
+ */
17
+ export interface FunctionStaticAsset {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FunctionStaticAsset
22
+ */
23
+ artifactId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FunctionStaticAsset
28
+ */
29
+ routePrefix: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FunctionStaticAsset
34
+ */
35
+ digest?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the FunctionStaticAsset interface.
39
+ */
40
+ export declare function instanceOfFunctionStaticAsset(value: object): value is FunctionStaticAsset;
41
+ export declare function FunctionStaticAssetFromJSON(json: any): FunctionStaticAsset;
42
+ export declare function FunctionStaticAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionStaticAsset;
43
+ export declare function FunctionStaticAssetToJSON(json: any): FunctionStaticAsset;
44
+ export declare function FunctionStaticAssetToJSONTyped(value?: FunctionStaticAsset | null, ignoreDiscriminator?: boolean): any;
45
+ //# sourceMappingURL=FunctionStaticAsset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionStaticAsset.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionStaticAsset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAIzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAU7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5H"}
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the FunctionStaticAsset interface.
16
+ */
17
+ export function instanceOfFunctionStaticAsset(value) {
18
+ if (!('artifactId' in value) || value['artifactId'] === undefined)
19
+ return false;
20
+ if (!('routePrefix' in value) || value['routePrefix'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function FunctionStaticAssetFromJSON(json) {
25
+ return FunctionStaticAssetFromJSONTyped(json, false);
26
+ }
27
+ export function FunctionStaticAssetFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'artifactId': json['artifact_id'],
33
+ 'routePrefix': json['route_prefix'],
34
+ 'digest': json['digest'] == null ? undefined : json['digest'],
35
+ };
36
+ }
37
+ export function FunctionStaticAssetToJSON(json) {
38
+ return FunctionStaticAssetToJSONTyped(json, false);
39
+ }
40
+ export function FunctionStaticAssetToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'artifact_id': value['artifactId'],
46
+ 'route_prefix': value['routePrefix'],
47
+ 'digest': value['digest'],
48
+ };
49
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FunctionAutoscaling } from './FunctionAutoscaling.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FunctionUpdateRequest
17
+ */
18
+ export interface FunctionUpdateRequest {
19
+ /**
20
+ * Mutable function display name. Slug and domain label stay stable.
21
+ * @type {string}
22
+ * @memberof FunctionUpdateRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ * Whether the function host should serve traffic. Disabled functions do not restore runtime sandboxes.
27
+ * @type {boolean}
28
+ * @memberof FunctionUpdateRequest
29
+ */
30
+ enabled?: boolean;
31
+ /**
32
+ *
33
+ * @type {FunctionAutoscaling}
34
+ * @memberof FunctionUpdateRequest
35
+ */
36
+ autoscaling?: FunctionAutoscaling;
37
+ }
38
+ /**
39
+ * Check if a given object implements the FunctionUpdateRequest interface.
40
+ */
41
+ export declare function instanceOfFunctionUpdateRequest(value: object): value is FunctionUpdateRequest;
42
+ export declare function FunctionUpdateRequestFromJSON(json: any): FunctionUpdateRequest;
43
+ export declare function FunctionUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionUpdateRequest;
44
+ export declare function FunctionUpdateRequestToJSON(json: any): FunctionUpdateRequest;
45
+ export declare function FunctionUpdateRequestToJSONTyped(value?: FunctionUpdateRequest | null, ignoreDiscriminator?: boolean): any;
46
+ //# sourceMappingURL=FunctionUpdateRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunctionUpdateRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/FunctionUpdateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAUjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhI"}
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sandbox0 API
5
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { FunctionAutoscalingFromJSON, FunctionAutoscalingToJSON, } from './FunctionAutoscaling.js';
15
+ /**
16
+ * Check if a given object implements the FunctionUpdateRequest interface.
17
+ */
18
+ export function instanceOfFunctionUpdateRequest(value) {
19
+ return true;
20
+ }
21
+ export function FunctionUpdateRequestFromJSON(json) {
22
+ return FunctionUpdateRequestFromJSONTyped(json, false);
23
+ }
24
+ export function FunctionUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
31
+ 'autoscaling': json['autoscaling'] == null ? undefined : FunctionAutoscalingFromJSON(json['autoscaling']),
32
+ };
33
+ }
34
+ export function FunctionUpdateRequestToJSON(json) {
35
+ return FunctionUpdateRequestToJSONTyped(json, false);
36
+ }
37
+ export function FunctionUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'enabled': value['enabled'],
44
+ 'autoscaling': FunctionAutoscalingToJSON(value['autoscaling']),
45
+ };
46
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Sandbox0 API
3
+ * Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MCPToolPolicy } from './MCPToolPolicy.js';
13
+ /**
14
+ * Model Context Protocol operation policy.
15
+ * @export
16
+ * @interface MCPProtocolRule
17
+ */
18
+ export interface MCPProtocolRule {
19
+ /**
20
+ *
21
+ * @type {MCPToolPolicy}
22
+ * @memberof MCPProtocolRule
23
+ */
24
+ tools?: MCPToolPolicy;
25
+ }
26
+ /**
27
+ * Check if a given object implements the MCPProtocolRule interface.
28
+ */
29
+ export declare function instanceOfMCPProtocolRule(value: object): value is MCPProtocolRule;
30
+ export declare function MCPProtocolRuleFromJSON(json: any): MCPProtocolRule;
31
+ export declare function MCPProtocolRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): MCPProtocolRule;
32
+ export declare function MCPProtocolRuleToJSON(json: any): MCPProtocolRule;
33
+ export declare function MCPProtocolRuleToJSONTyped(value?: MCPProtocolRule | null, ignoreDiscriminator?: boolean): any;
34
+ //# sourceMappingURL=MCPProtocolRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MCPProtocolRule.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/MCPProtocolRule.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAQrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpH"}