sandbox0 0.4.1 → 0.5.1

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 (179) 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/QuotasApi.d.ts +53 -0
  5. package/dist/apispec/src/apis/QuotasApi.d.ts.map +1 -0
  6. package/dist/apispec/src/apis/QuotasApi.js +124 -0
  7. package/dist/apispec/src/apis/SandboxesApi.d.ts +4 -14
  8. package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
  9. package/dist/apispec/src/apis/SandboxesApi.js +2 -11
  10. package/dist/apispec/src/apis/index.d.ts +1 -1
  11. package/dist/apispec/src/apis/index.d.ts.map +1 -1
  12. package/dist/apispec/src/apis/index.js +1 -1
  13. package/dist/apispec/src/models/ClaimResponse.d.ts +3 -2
  14. package/dist/apispec/src/models/ClaimResponse.d.ts.map +1 -1
  15. package/dist/apispec/src/models/ClaimResponse.js +3 -2
  16. package/dist/apispec/src/models/EgressAuthRolloutMode.d.ts +2 -2
  17. package/dist/apispec/src/models/EgressAuthRolloutMode.js +2 -2
  18. package/dist/apispec/src/models/MCPProtocolRule.d.ts +34 -0
  19. package/dist/apispec/src/models/MCPProtocolRule.d.ts.map +1 -0
  20. package/dist/apispec/src/models/MCPProtocolRule.js +42 -0
  21. package/dist/apispec/src/models/MCPToolPolicy.d.ts +39 -0
  22. package/dist/apispec/src/models/MCPToolPolicy.d.ts.map +1 -0
  23. package/dist/apispec/src/models/MCPToolPolicy.js +43 -0
  24. package/dist/apispec/src/models/NetworkEgressPolicy.d.ts +9 -0
  25. package/dist/apispec/src/models/NetworkEgressPolicy.d.ts.map +1 -1
  26. package/dist/apispec/src/models/NetworkEgressPolicy.js +3 -0
  27. package/dist/apispec/src/models/ProtocolRule.d.ts +74 -0
  28. package/dist/apispec/src/models/ProtocolRule.d.ts.map +1 -0
  29. package/dist/apispec/src/models/ProtocolRule.js +60 -0
  30. package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts +25 -0
  31. package/dist/apispec/src/models/ProtocolRuleProtocol.d.ts.map +1 -0
  32. package/dist/apispec/src/models/ProtocolRuleProtocol.js +42 -0
  33. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts +33 -0
  34. package/dist/apispec/src/models/PutTeamQuotaRequest.d.ts.map +1 -0
  35. package/dist/apispec/src/models/PutTeamQuotaRequest.js +43 -0
  36. package/dist/apispec/src/models/QuotaDimension.d.ts +31 -0
  37. package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -0
  38. package/dist/apispec/src/models/QuotaDimension.js +48 -0
  39. package/dist/apispec/src/models/Sandbox.d.ts +3 -2
  40. package/dist/apispec/src/models/Sandbox.d.ts.map +1 -1
  41. package/dist/apispec/src/models/Sandbox.js +3 -2
  42. package/dist/apispec/src/models/SandboxAppService.d.ts +1 -1
  43. package/dist/apispec/src/models/SandboxAppServiceRuntime.d.ts +3 -3
  44. package/dist/apispec/src/models/SandboxConfig.d.ts +1 -1
  45. package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts +30 -0
  46. package/dist/apispec/src/models/SandboxLifecycleStatus.d.ts.map +1 -0
  47. package/dist/apispec/src/models/SandboxLifecycleStatus.js +47 -0
  48. package/dist/apispec/src/models/SandboxPowerState.d.ts +2 -2
  49. package/dist/apispec/src/models/SandboxPowerState.js +2 -2
  50. package/dist/apispec/src/models/SandboxStatus.d.ts +3 -2
  51. package/dist/apispec/src/models/SandboxStatus.d.ts.map +1 -1
  52. package/dist/apispec/src/models/SandboxStatus.js +3 -2
  53. package/dist/apispec/src/models/SandboxSummary.d.ts +3 -12
  54. package/dist/apispec/src/models/SandboxSummary.d.ts.map +1 -1
  55. package/dist/apispec/src/models/SandboxSummary.js +3 -11
  56. package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +1 -1
  57. package/dist/apispec/src/models/SuccessTeamQuotaResponse.d.ts +40 -0
  58. package/dist/apispec/src/models/SuccessTeamQuotaResponse.d.ts.map +1 -0
  59. package/dist/apispec/src/models/SuccessTeamQuotaResponse.js +46 -0
  60. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts +40 -0
  61. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.d.ts.map +1 -0
  62. package/dist/apispec/src/models/SuccessVolumeFileArchiveImportResponse.js +46 -0
  63. package/dist/apispec/src/models/TeamQuota.d.ts +46 -0
  64. package/dist/apispec/src/models/TeamQuota.d.ts.map +1 -0
  65. package/dist/apispec/src/models/TeamQuota.js +50 -0
  66. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts +51 -0
  67. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.d.ts.map +1 -0
  68. package/dist/apispec/src/models/VolumeFileArchiveImportResponse.js +55 -0
  69. package/dist/apispec/src/models/index.d.ts +11 -30
  70. package/dist/apispec/src/models/index.d.ts.map +1 -1
  71. package/dist/apispec/src/models/index.js +11 -30
  72. package/dist/apispec_compat.d.ts +79 -165
  73. package/dist/apispec_compat.d.ts.map +1 -1
  74. package/dist/client.d.ts +0 -3
  75. package/dist/client.d.ts.map +1 -1
  76. package/dist/client.js +0 -4
  77. package/dist/index.d.ts +0 -2
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +0 -1
  80. package/dist/resources/volumes.d.ts +2 -1
  81. package/dist/resources/volumes.d.ts.map +1 -1
  82. package/dist/resources/volumes.js +9 -0
  83. package/package.json +1 -1
  84. package/dist/apispec/src/apis/FunctionsApi.d.ts +0 -184
  85. package/dist/apispec/src/apis/FunctionsApi.d.ts.map +0 -1
  86. package/dist/apispec/src/apis/FunctionsApi.js +0 -514
  87. package/dist/apispec/src/models/Function.d.ts +0 -93
  88. package/dist/apispec/src/models/Function.d.ts.map +0 -1
  89. package/dist/apispec/src/models/Function.js +0 -77
  90. package/dist/apispec/src/models/FunctionAlias.d.ts +0 -63
  91. package/dist/apispec/src/models/FunctionAlias.d.ts.map +0 -1
  92. package/dist/apispec/src/models/FunctionAlias.js +0 -61
  93. package/dist/apispec/src/models/FunctionAliasUpdateRequest.d.ts +0 -33
  94. package/dist/apispec/src/models/FunctionAliasUpdateRequest.d.ts.map +0 -1
  95. package/dist/apispec/src/models/FunctionAliasUpdateRequest.js +0 -43
  96. package/dist/apispec/src/models/FunctionCreateRequest.d.ts +0 -40
  97. package/dist/apispec/src/models/FunctionCreateRequest.d.ts.map +0 -1
  98. package/dist/apispec/src/models/FunctionCreateRequest.js +0 -46
  99. package/dist/apispec/src/models/FunctionRecord.d.ts +0 -105
  100. package/dist/apispec/src/models/FunctionRecord.d.ts.map +0 -1
  101. package/dist/apispec/src/models/FunctionRecord.js +0 -85
  102. package/dist/apispec/src/models/FunctionRestoreMount.d.ts +0 -51
  103. package/dist/apispec/src/models/FunctionRestoreMount.d.ts.map +0 -1
  104. package/dist/apispec/src/models/FunctionRestoreMount.js +0 -51
  105. package/dist/apispec/src/models/FunctionRevision.d.ts +0 -113
  106. package/dist/apispec/src/models/FunctionRevision.d.ts.map +0 -1
  107. package/dist/apispec/src/models/FunctionRevision.js +0 -87
  108. package/dist/apispec/src/models/FunctionRevisionCreateRequest.d.ts +0 -40
  109. package/dist/apispec/src/models/FunctionRevisionCreateRequest.d.ts.map +0 -1
  110. package/dist/apispec/src/models/FunctionRevisionCreateRequest.js +0 -46
  111. package/dist/apispec/src/models/FunctionRuntimeState.d.ts +0 -27
  112. package/dist/apispec/src/models/FunctionRuntimeState.d.ts.map +0 -1
  113. package/dist/apispec/src/models/FunctionRuntimeState.js +0 -44
  114. package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts +0 -70
  115. package/dist/apispec/src/models/FunctionRuntimeStatus.d.ts.map +0 -1
  116. package/dist/apispec/src/models/FunctionRuntimeStatus.js +0 -62
  117. package/dist/apispec/src/models/FunctionSourceRequest.d.ts +0 -39
  118. package/dist/apispec/src/models/FunctionSourceRequest.d.ts.map +0 -1
  119. package/dist/apispec/src/models/FunctionSourceRequest.js +0 -47
  120. package/dist/apispec/src/models/FunctionUpdateRequest.d.ts +0 -39
  121. package/dist/apispec/src/models/FunctionUpdateRequest.d.ts.map +0 -1
  122. package/dist/apispec/src/models/FunctionUpdateRequest.js +0 -43
  123. package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts +0 -40
  124. package/dist/apispec/src/models/SuccessFunctionAliasListResponse.d.ts.map +0 -1
  125. package/dist/apispec/src/models/SuccessFunctionAliasListResponse.js +0 -46
  126. package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts +0 -34
  127. package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.d.ts.map +0 -1
  128. package/dist/apispec/src/models/SuccessFunctionAliasListResponseAllOfData.js +0 -44
  129. package/dist/apispec/src/models/SuccessFunctionAliasResponse.d.ts +0 -40
  130. package/dist/apispec/src/models/SuccessFunctionAliasResponse.d.ts.map +0 -1
  131. package/dist/apispec/src/models/SuccessFunctionAliasResponse.js +0 -46
  132. package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.d.ts +0 -34
  133. package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.d.ts.map +0 -1
  134. package/dist/apispec/src/models/SuccessFunctionAliasResponseAllOfData.js +0 -44
  135. package/dist/apispec/src/models/SuccessFunctionCreateResponse.d.ts +0 -40
  136. package/dist/apispec/src/models/SuccessFunctionCreateResponse.d.ts.map +0 -1
  137. package/dist/apispec/src/models/SuccessFunctionCreateResponse.js +0 -46
  138. package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.d.ts +0 -48
  139. package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.d.ts.map +0 -1
  140. package/dist/apispec/src/models/SuccessFunctionCreateResponseAllOfData.js +0 -54
  141. package/dist/apispec/src/models/SuccessFunctionListResponse.d.ts +0 -40
  142. package/dist/apispec/src/models/SuccessFunctionListResponse.d.ts.map +0 -1
  143. package/dist/apispec/src/models/SuccessFunctionListResponse.js +0 -46
  144. package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.d.ts +0 -34
  145. package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.d.ts.map +0 -1
  146. package/dist/apispec/src/models/SuccessFunctionListResponseAllOfData.js +0 -44
  147. package/dist/apispec/src/models/SuccessFunctionResponse.d.ts +0 -40
  148. package/dist/apispec/src/models/SuccessFunctionResponse.d.ts.map +0 -1
  149. package/dist/apispec/src/models/SuccessFunctionResponse.js +0 -46
  150. package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.d.ts +0 -34
  151. package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.d.ts.map +0 -1
  152. package/dist/apispec/src/models/SuccessFunctionResponseAllOfData.js +0 -44
  153. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.d.ts +0 -40
  154. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.d.ts.map +0 -1
  155. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponse.js +0 -46
  156. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.d.ts +0 -40
  157. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.d.ts.map +0 -1
  158. package/dist/apispec/src/models/SuccessFunctionRevisionCreateResponseAllOfData.js +0 -48
  159. package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.d.ts +0 -40
  160. package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.d.ts.map +0 -1
  161. package/dist/apispec/src/models/SuccessFunctionRevisionListResponse.js +0 -46
  162. package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.d.ts +0 -34
  163. package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.d.ts.map +0 -1
  164. package/dist/apispec/src/models/SuccessFunctionRevisionListResponseAllOfData.js +0 -44
  165. package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts +0 -40
  166. package/dist/apispec/src/models/SuccessFunctionRevisionResponse.d.ts.map +0 -1
  167. package/dist/apispec/src/models/SuccessFunctionRevisionResponse.js +0 -46
  168. package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts +0 -34
  169. package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.d.ts.map +0 -1
  170. package/dist/apispec/src/models/SuccessFunctionRevisionResponseAllOfData.js +0 -44
  171. package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts +0 -40
  172. package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.d.ts.map +0 -1
  173. package/dist/apispec/src/models/SuccessFunctionRuntimeResponse.js +0 -46
  174. package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts +0 -34
  175. package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.d.ts.map +0 -1
  176. package/dist/apispec/src/models/SuccessFunctionRuntimeResponseAllOfData.js +0 -44
  177. package/dist/resources/functions.d.ts +0 -39
  178. package/dist/resources/functions.d.ts.map +0 -1
  179. package/dist/resources/functions.js +0 -128
@@ -1,514 +0,0 @@
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 * as runtime from '../runtime.js';
15
- import { FunctionAliasUpdateRequestToJSON, FunctionCreateRequestToJSON, FunctionRevisionCreateRequestToJSON, FunctionUpdateRequestToJSON, SuccessFunctionAliasListResponseFromJSON, SuccessFunctionAliasResponseFromJSON, SuccessFunctionCreateResponseFromJSON, SuccessFunctionListResponseFromJSON, SuccessFunctionResponseFromJSON, SuccessFunctionRevisionCreateResponseFromJSON, SuccessFunctionRevisionListResponseFromJSON, SuccessFunctionRevisionResponseFromJSON, SuccessFunctionRuntimeResponseFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class FunctionsApi extends runtime.BaseAPI {
20
- /**
21
- * List functions
22
- */
23
- async apiV1FunctionsGetRaw(initOverrides) {
24
- const queryParameters = {};
25
- const headerParameters = {};
26
- if (this.configuration && this.configuration.accessToken) {
27
- const token = this.configuration.accessToken;
28
- const tokenString = await token("bearerAuth", []);
29
- if (tokenString) {
30
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
31
- }
32
- }
33
- let urlPath = `/api/v1/functions`;
34
- const response = await this.request({
35
- path: urlPath,
36
- method: 'GET',
37
- headers: headerParameters,
38
- query: queryParameters,
39
- }, initOverrides);
40
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionListResponseFromJSON(jsonValue));
41
- }
42
- /**
43
- * List functions
44
- */
45
- async apiV1FunctionsGet(initOverrides) {
46
- const response = await this.apiV1FunctionsGetRaw(initOverrides);
47
- return await response.value();
48
- }
49
- /**
50
- * Get function alias
51
- */
52
- async apiV1FunctionsIdAliasesAliasGetRaw(requestParameters, initOverrides) {
53
- if (requestParameters['id'] == null) {
54
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdAliasesAliasGet().');
55
- }
56
- if (requestParameters['alias'] == null) {
57
- throw new runtime.RequiredError('alias', 'Required parameter "alias" was null or undefined when calling apiV1FunctionsIdAliasesAliasGet().');
58
- }
59
- const queryParameters = {};
60
- const headerParameters = {};
61
- if (this.configuration && this.configuration.accessToken) {
62
- const token = this.configuration.accessToken;
63
- const tokenString = await token("bearerAuth", []);
64
- if (tokenString) {
65
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
66
- }
67
- }
68
- let urlPath = `/api/v1/functions/{id}/aliases/{alias}`;
69
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
70
- urlPath = urlPath.replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters['alias'])));
71
- const response = await this.request({
72
- path: urlPath,
73
- method: 'GET',
74
- headers: headerParameters,
75
- query: queryParameters,
76
- }, initOverrides);
77
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionAliasResponseFromJSON(jsonValue));
78
- }
79
- /**
80
- * Get function alias
81
- */
82
- async apiV1FunctionsIdAliasesAliasGet(requestParameters, initOverrides) {
83
- const response = await this.apiV1FunctionsIdAliasesAliasGetRaw(requestParameters, initOverrides);
84
- return await response.value();
85
- }
86
- /**
87
- * Point a function alias at a revision
88
- */
89
- async apiV1FunctionsIdAliasesAliasPutRaw(requestParameters, initOverrides) {
90
- if (requestParameters['id'] == null) {
91
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdAliasesAliasPut().');
92
- }
93
- if (requestParameters['alias'] == null) {
94
- throw new runtime.RequiredError('alias', 'Required parameter "alias" was null or undefined when calling apiV1FunctionsIdAliasesAliasPut().');
95
- }
96
- if (requestParameters['functionAliasUpdateRequest'] == null) {
97
- throw new runtime.RequiredError('functionAliasUpdateRequest', 'Required parameter "functionAliasUpdateRequest" was null or undefined when calling apiV1FunctionsIdAliasesAliasPut().');
98
- }
99
- const queryParameters = {};
100
- const headerParameters = {};
101
- headerParameters['Content-Type'] = 'application/json';
102
- if (this.configuration && this.configuration.accessToken) {
103
- const token = this.configuration.accessToken;
104
- const tokenString = await token("bearerAuth", []);
105
- if (tokenString) {
106
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
107
- }
108
- }
109
- let urlPath = `/api/v1/functions/{id}/aliases/{alias}`;
110
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
111
- urlPath = urlPath.replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters['alias'])));
112
- const response = await this.request({
113
- path: urlPath,
114
- method: 'PUT',
115
- headers: headerParameters,
116
- query: queryParameters,
117
- body: FunctionAliasUpdateRequestToJSON(requestParameters['functionAliasUpdateRequest']),
118
- }, initOverrides);
119
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionAliasResponseFromJSON(jsonValue));
120
- }
121
- /**
122
- * Point a function alias at a revision
123
- */
124
- async apiV1FunctionsIdAliasesAliasPut(requestParameters, initOverrides) {
125
- const response = await this.apiV1FunctionsIdAliasesAliasPutRaw(requestParameters, initOverrides);
126
- return await response.value();
127
- }
128
- /**
129
- * List function aliases
130
- */
131
- async apiV1FunctionsIdAliasesGetRaw(requestParameters, initOverrides) {
132
- if (requestParameters['id'] == null) {
133
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdAliasesGet().');
134
- }
135
- const queryParameters = {};
136
- const headerParameters = {};
137
- if (this.configuration && this.configuration.accessToken) {
138
- const token = this.configuration.accessToken;
139
- const tokenString = await token("bearerAuth", []);
140
- if (tokenString) {
141
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
142
- }
143
- }
144
- let urlPath = `/api/v1/functions/{id}/aliases`;
145
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
146
- const response = await this.request({
147
- path: urlPath,
148
- method: 'GET',
149
- headers: headerParameters,
150
- query: queryParameters,
151
- }, initOverrides);
152
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionAliasListResponseFromJSON(jsonValue));
153
- }
154
- /**
155
- * List function aliases
156
- */
157
- async apiV1FunctionsIdAliasesGet(requestParameters, initOverrides) {
158
- const response = await this.apiV1FunctionsIdAliasesGetRaw(requestParameters, initOverrides);
159
- return await response.value();
160
- }
161
- /**
162
- * Soft-deletes the function, disables its host, and schedules best-effort runtime and revision volume cleanup. The function slug and domain label remain reserved.
163
- * Delete function
164
- */
165
- async apiV1FunctionsIdDeleteRaw(requestParameters, initOverrides) {
166
- if (requestParameters['id'] == null) {
167
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdDelete().');
168
- }
169
- const queryParameters = {};
170
- const headerParameters = {};
171
- if (this.configuration && this.configuration.accessToken) {
172
- const token = this.configuration.accessToken;
173
- const tokenString = await token("bearerAuth", []);
174
- if (tokenString) {
175
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
176
- }
177
- }
178
- let urlPath = `/api/v1/functions/{id}`;
179
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
180
- const response = await this.request({
181
- path: urlPath,
182
- method: 'DELETE',
183
- headers: headerParameters,
184
- query: queryParameters,
185
- }, initOverrides);
186
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionResponseFromJSON(jsonValue));
187
- }
188
- /**
189
- * Soft-deletes the function, disables its host, and schedules best-effort runtime and revision volume cleanup. The function slug and domain label remain reserved.
190
- * Delete function
191
- */
192
- async apiV1FunctionsIdDelete(requestParameters, initOverrides) {
193
- const response = await this.apiV1FunctionsIdDeleteRaw(requestParameters, initOverrides);
194
- return await response.value();
195
- }
196
- /**
197
- * Get function
198
- */
199
- async apiV1FunctionsIdGetRaw(requestParameters, initOverrides) {
200
- if (requestParameters['id'] == null) {
201
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdGet().');
202
- }
203
- const queryParameters = {};
204
- const headerParameters = {};
205
- if (this.configuration && this.configuration.accessToken) {
206
- const token = this.configuration.accessToken;
207
- const tokenString = await token("bearerAuth", []);
208
- if (tokenString) {
209
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
210
- }
211
- }
212
- let urlPath = `/api/v1/functions/{id}`;
213
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
214
- const response = await this.request({
215
- path: urlPath,
216
- method: 'GET',
217
- headers: headerParameters,
218
- query: queryParameters,
219
- }, initOverrides);
220
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionResponseFromJSON(jsonValue));
221
- }
222
- /**
223
- * Get function
224
- */
225
- async apiV1FunctionsIdGet(requestParameters, initOverrides) {
226
- const response = await this.apiV1FunctionsIdGetRaw(requestParameters, initOverrides);
227
- return await response.value();
228
- }
229
- /**
230
- * Update function lifecycle state
231
- */
232
- async apiV1FunctionsIdPutRaw(requestParameters, initOverrides) {
233
- if (requestParameters['id'] == null) {
234
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdPut().');
235
- }
236
- if (requestParameters['functionUpdateRequest'] == null) {
237
- throw new runtime.RequiredError('functionUpdateRequest', 'Required parameter "functionUpdateRequest" was null or undefined when calling apiV1FunctionsIdPut().');
238
- }
239
- const queryParameters = {};
240
- const headerParameters = {};
241
- headerParameters['Content-Type'] = 'application/json';
242
- if (this.configuration && this.configuration.accessToken) {
243
- const token = this.configuration.accessToken;
244
- const tokenString = await token("bearerAuth", []);
245
- if (tokenString) {
246
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
247
- }
248
- }
249
- let urlPath = `/api/v1/functions/{id}`;
250
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
251
- const response = await this.request({
252
- path: urlPath,
253
- method: 'PUT',
254
- headers: headerParameters,
255
- query: queryParameters,
256
- body: FunctionUpdateRequestToJSON(requestParameters['functionUpdateRequest']),
257
- }, initOverrides);
258
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionResponseFromJSON(jsonValue));
259
- }
260
- /**
261
- * Update function lifecycle state
262
- */
263
- async apiV1FunctionsIdPut(requestParameters, initOverrides) {
264
- const response = await this.apiV1FunctionsIdPutRaw(requestParameters, initOverrides);
265
- return await response.value();
266
- }
267
- /**
268
- * List function revisions
269
- */
270
- async apiV1FunctionsIdRevisionsGetRaw(requestParameters, initOverrides) {
271
- if (requestParameters['id'] == null) {
272
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsGet().');
273
- }
274
- const queryParameters = {};
275
- const headerParameters = {};
276
- if (this.configuration && this.configuration.accessToken) {
277
- const token = this.configuration.accessToken;
278
- const tokenString = await token("bearerAuth", []);
279
- if (tokenString) {
280
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
281
- }
282
- }
283
- let urlPath = `/api/v1/functions/{id}/revisions`;
284
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
285
- const response = await this.request({
286
- path: urlPath,
287
- method: 'GET',
288
- headers: headerParameters,
289
- query: queryParameters,
290
- }, initOverrides);
291
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionListResponseFromJSON(jsonValue));
292
- }
293
- /**
294
- * List function revisions
295
- */
296
- async apiV1FunctionsIdRevisionsGet(requestParameters, initOverrides) {
297
- const response = await this.apiV1FunctionsIdRevisionsGetRaw(requestParameters, initOverrides);
298
- return await response.value();
299
- }
300
- /**
301
- * Create function revision from a sandbox service
302
- */
303
- async apiV1FunctionsIdRevisionsPostRaw(requestParameters, initOverrides) {
304
- if (requestParameters['id'] == null) {
305
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsPost().');
306
- }
307
- if (requestParameters['functionRevisionCreateRequest'] == null) {
308
- throw new runtime.RequiredError('functionRevisionCreateRequest', 'Required parameter "functionRevisionCreateRequest" was null or undefined when calling apiV1FunctionsIdRevisionsPost().');
309
- }
310
- const queryParameters = {};
311
- const headerParameters = {};
312
- headerParameters['Content-Type'] = 'application/json';
313
- if (this.configuration && this.configuration.accessToken) {
314
- const token = this.configuration.accessToken;
315
- const tokenString = await token("bearerAuth", []);
316
- if (tokenString) {
317
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
318
- }
319
- }
320
- let urlPath = `/api/v1/functions/{id}/revisions`;
321
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
322
- const response = await this.request({
323
- path: urlPath,
324
- method: 'POST',
325
- headers: headerParameters,
326
- query: queryParameters,
327
- body: FunctionRevisionCreateRequestToJSON(requestParameters['functionRevisionCreateRequest']),
328
- }, initOverrides);
329
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionCreateResponseFromJSON(jsonValue));
330
- }
331
- /**
332
- * Create function revision from a sandbox service
333
- */
334
- async apiV1FunctionsIdRevisionsPost(requestParameters, initOverrides) {
335
- const response = await this.apiV1FunctionsIdRevisionsPostRaw(requestParameters, initOverrides);
336
- return await response.value();
337
- }
338
- /**
339
- * Get function revision
340
- */
341
- async apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters, initOverrides) {
342
- if (requestParameters['id'] == null) {
343
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRevisionsRevisionNumberGet().');
344
- }
345
- if (requestParameters['revisionNumber'] == null) {
346
- throw new runtime.RequiredError('revisionNumber', 'Required parameter "revisionNumber" was null or undefined when calling apiV1FunctionsIdRevisionsRevisionNumberGet().');
347
- }
348
- const queryParameters = {};
349
- const headerParameters = {};
350
- if (this.configuration && this.configuration.accessToken) {
351
- const token = this.configuration.accessToken;
352
- const tokenString = await token("bearerAuth", []);
353
- if (tokenString) {
354
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
355
- }
356
- }
357
- let urlPath = `/api/v1/functions/{id}/revisions/{revision_number}`;
358
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
359
- urlPath = urlPath.replace(`{${"revision_number"}}`, encodeURIComponent(String(requestParameters['revisionNumber'])));
360
- const response = await this.request({
361
- path: urlPath,
362
- method: 'GET',
363
- headers: headerParameters,
364
- query: queryParameters,
365
- }, initOverrides);
366
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRevisionResponseFromJSON(jsonValue));
367
- }
368
- /**
369
- * Get function revision
370
- */
371
- async apiV1FunctionsIdRevisionsRevisionNumberGet(requestParameters, initOverrides) {
372
- const response = await this.apiV1FunctionsIdRevisionsRevisionNumberGetRaw(requestParameters, initOverrides);
373
- return await response.value();
374
- }
375
- /**
376
- * Get active function runtime
377
- */
378
- async apiV1FunctionsIdRuntimeGetRaw(requestParameters, initOverrides) {
379
- if (requestParameters['id'] == null) {
380
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeGet().');
381
- }
382
- const queryParameters = {};
383
- const headerParameters = {};
384
- if (this.configuration && this.configuration.accessToken) {
385
- const token = this.configuration.accessToken;
386
- const tokenString = await token("bearerAuth", []);
387
- if (tokenString) {
388
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
389
- }
390
- }
391
- let urlPath = `/api/v1/functions/{id}/runtime`;
392
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
393
- const response = await this.request({
394
- path: urlPath,
395
- method: 'GET',
396
- headers: headerParameters,
397
- query: queryParameters,
398
- }, initOverrides);
399
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
400
- }
401
- /**
402
- * Get active function runtime
403
- */
404
- async apiV1FunctionsIdRuntimeGet(requestParameters, initOverrides) {
405
- const response = await this.apiV1FunctionsIdRuntimeGetRaw(requestParameters, initOverrides);
406
- return await response.value();
407
- }
408
- /**
409
- * Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
410
- * Recycle active function runtime
411
- */
412
- async apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters, initOverrides) {
413
- if (requestParameters['id'] == null) {
414
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeRecyclePost().');
415
- }
416
- const queryParameters = {};
417
- const headerParameters = {};
418
- if (this.configuration && this.configuration.accessToken) {
419
- const token = this.configuration.accessToken;
420
- const tokenString = await token("bearerAuth", []);
421
- if (tokenString) {
422
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
423
- }
424
- }
425
- let urlPath = `/api/v1/functions/{id}/runtime/recycle`;
426
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
427
- const response = await this.request({
428
- path: urlPath,
429
- method: 'POST',
430
- headers: headerParameters,
431
- query: queryParameters,
432
- }, initOverrides);
433
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
434
- }
435
- /**
436
- * Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
437
- * Recycle active function runtime
438
- */
439
- async apiV1FunctionsIdRuntimeRecyclePost(requestParameters, initOverrides) {
440
- const response = await this.apiV1FunctionsIdRuntimeRecyclePostRaw(requestParameters, initOverrides);
441
- return await response.value();
442
- }
443
- /**
444
- * Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
445
- * Restart active function runtime
446
- */
447
- async apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters, initOverrides) {
448
- if (requestParameters['id'] == null) {
449
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1FunctionsIdRuntimeRestartPost().');
450
- }
451
- const queryParameters = {};
452
- const headerParameters = {};
453
- if (this.configuration && this.configuration.accessToken) {
454
- const token = this.configuration.accessToken;
455
- const tokenString = await token("bearerAuth", []);
456
- if (tokenString) {
457
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
458
- }
459
- }
460
- let urlPath = `/api/v1/functions/{id}/runtime/restart`;
461
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
462
- const response = await this.request({
463
- path: urlPath,
464
- method: 'POST',
465
- headers: headerParameters,
466
- query: queryParameters,
467
- }, initOverrides);
468
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionRuntimeResponseFromJSON(jsonValue));
469
- }
470
- /**
471
- * Deletes the current restored runtime sandbox when one exists and clears the runtime mapping; the next function request starts a fresh runtime.
472
- * Restart active function runtime
473
- */
474
- async apiV1FunctionsIdRuntimeRestartPost(requestParameters, initOverrides) {
475
- const response = await this.apiV1FunctionsIdRuntimeRestartPostRaw(requestParameters, initOverrides);
476
- return await response.value();
477
- }
478
- /**
479
- * Creates a function, revision 1, and the production alias from an existing sandbox service.
480
- * Create a function from a sandbox service
481
- */
482
- async apiV1FunctionsPostRaw(requestParameters, initOverrides) {
483
- if (requestParameters['functionCreateRequest'] == null) {
484
- throw new runtime.RequiredError('functionCreateRequest', 'Required parameter "functionCreateRequest" was null or undefined when calling apiV1FunctionsPost().');
485
- }
486
- const queryParameters = {};
487
- const headerParameters = {};
488
- headerParameters['Content-Type'] = 'application/json';
489
- if (this.configuration && this.configuration.accessToken) {
490
- const token = this.configuration.accessToken;
491
- const tokenString = await token("bearerAuth", []);
492
- if (tokenString) {
493
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
494
- }
495
- }
496
- let urlPath = `/api/v1/functions`;
497
- const response = await this.request({
498
- path: urlPath,
499
- method: 'POST',
500
- headers: headerParameters,
501
- query: queryParameters,
502
- body: FunctionCreateRequestToJSON(requestParameters['functionCreateRequest']),
503
- }, initOverrides);
504
- return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFunctionCreateResponseFromJSON(jsonValue));
505
- }
506
- /**
507
- * Creates a function, revision 1, and the production alias from an existing sandbox service.
508
- * Create a function from a sandbox service
509
- */
510
- async apiV1FunctionsPost(requestParameters, initOverrides) {
511
- const response = await this.apiV1FunctionsPostRaw(requestParameters, initOverrides);
512
- return await response.value();
513
- }
514
- }
@@ -1,93 +0,0 @@
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 Function
16
- */
17
- export interface Function {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof Function
22
- */
23
- id: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof Function
28
- */
29
- teamId: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof Function
34
- */
35
- name: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof Function
40
- */
41
- slug: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof Function
46
- */
47
- domainLabel: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof Function
52
- */
53
- activeRevisionId?: string;
54
- /**
55
- *
56
- * @type {boolean}
57
- * @memberof Function
58
- */
59
- enabled: boolean;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof Function
64
- */
65
- createdBy?: string;
66
- /**
67
- *
68
- * @type {Date}
69
- * @memberof Function
70
- */
71
- createdAt: Date;
72
- /**
73
- *
74
- * @type {Date}
75
- * @memberof Function
76
- */
77
- updatedAt: Date;
78
- /**
79
- * Set when the function has been soft-deleted. Deleted functions are hidden from normal list/get APIs and do not serve traffic.
80
- * @type {Date}
81
- * @memberof Function
82
- */
83
- deletedAt?: Date;
84
- }
85
- /**
86
- * Check if a given object implements the Function interface.
87
- */
88
- export declare function instanceOfFunction(value: object): value is Function;
89
- export declare function FunctionFromJSON(json: any): Function;
90
- export declare function FunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Function;
91
- export declare function FunctionToJSON(json: any): Function;
92
- export declare function FunctionToJSONTyped(value?: Function | null, ignoreDiscriminator?: boolean): any;
93
- //# sourceMappingURL=Function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/Function.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAUnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAkBvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBtG"}