@runloop/reflex-client 0.2.0 → 0.4.0
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.
- package/README.md +4 -0
- package/dist/generated/agents.d.ts +13 -0
- package/dist/generated/agents.d.ts.map +1 -1
- package/dist/generated/agents.js +13 -0
- package/dist/generated/agents.js.map +1 -1
- package/dist/generated/model/adminSetOrgSandboxProviderBody.d.ts +11 -0
- package/dist/generated/model/adminSetOrgSandboxProviderBody.d.ts.map +1 -0
- package/dist/generated/model/adminSetOrgSandboxProviderBody.js +8 -0
- package/dist/generated/model/adminSetOrgSandboxProviderBody.js.map +1 -0
- package/dist/generated/model/adminSetOrgSecretBody.d.ts +11 -0
- package/dist/generated/model/adminSetOrgSecretBody.d.ts.map +1 -0
- package/dist/generated/model/adminSetOrgSecretBody.js +8 -0
- package/dist/generated/model/adminSetOrgSecretBody.js.map +1 -0
- package/dist/generated/model/adminValidateOrgSandboxProviderBody.d.ts +11 -0
- package/dist/generated/model/adminValidateOrgSandboxProviderBody.d.ts.map +1 -0
- package/dist/generated/model/adminValidateOrgSandboxProviderBody.js +8 -0
- package/dist/generated/model/adminValidateOrgSandboxProviderBody.js.map +1 -0
- package/dist/generated/model/index.d.ts +3 -0
- package/dist/generated/model/index.d.ts.map +1 -1
- package/dist/generated/model/index.js +3 -0
- package/dist/generated/model/index.js.map +1 -1
- package/dist/generated/org-setup.d.ts +197 -0
- package/dist/generated/org-setup.d.ts.map +1 -0
- package/dist/generated/org-setup.js +179 -0
- package/dist/generated/org-setup.js.map +1 -0
- package/dist/generated/organizations.d.ts +37 -161
- package/dist/generated/organizations.d.ts.map +1 -1
- package/dist/generated/organizations.js +27 -133
- package/dist/generated/organizations.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/agents.d.ts +25 -0
- package/dist/react/agents.d.ts.map +1 -1
- package/dist/react/agents.js +26 -0
- package/dist/react/agents.js.map +1 -1
- package/dist/react/model/adminSetOrgSandboxProviderBody.d.ts +11 -0
- package/dist/react/model/adminSetOrgSandboxProviderBody.d.ts.map +1 -0
- package/dist/react/model/adminSetOrgSandboxProviderBody.js +8 -0
- package/dist/react/model/adminSetOrgSandboxProviderBody.js.map +1 -0
- package/dist/react/model/adminSetOrgSecretBody.d.ts +11 -0
- package/dist/react/model/adminSetOrgSecretBody.d.ts.map +1 -0
- package/dist/react/model/adminSetOrgSecretBody.js +8 -0
- package/dist/react/model/adminSetOrgSecretBody.js.map +1 -0
- package/dist/react/model/adminValidateOrgSandboxProviderBody.d.ts +11 -0
- package/dist/react/model/adminValidateOrgSandboxProviderBody.d.ts.map +1 -0
- package/dist/react/model/adminValidateOrgSandboxProviderBody.js +8 -0
- package/dist/react/model/adminValidateOrgSandboxProviderBody.js.map +1 -0
- package/dist/react/org-setup.d.ts +324 -0
- package/dist/react/org-setup.d.ts.map +1 -0
- package/dist/react/org-setup.js +369 -0
- package/dist/react/org-setup.js.map +1 -0
- package/dist/react/organizations.d.ts +85 -304
- package/dist/react/organizations.d.ts.map +1 -1
- package/dist/react/organizations.js +55 -266
- package/dist/react/organizations.js.map +1 -1
- package/package.json +5 -5
- package/src/generated/agents.ts +35 -0
- package/src/generated/model/adminSetOrgSandboxProviderBody.ts +11 -0
- package/src/generated/model/adminSetOrgSecretBody.ts +11 -0
- package/src/generated/model/adminValidateOrgSandboxProviderBody.ts +11 -0
- package/src/generated/model/index.ts +3 -0
- package/src/generated/org-setup.ts +501 -0
- package/src/generated/organizations.ts +52 -367
- package/src/index.ts +1 -0
- package/src/react/agents.ts +61 -0
- package/src/react/model/adminSetOrgSandboxProviderBody.ts +11 -0
- package/src/react/model/adminSetOrgSecretBody.ts +11 -0
- package/src/react/model/adminValidateOrgSandboxProviderBody.ts +11 -0
- package/src/react/org-setup.ts +911 -0
- package/src/react/organizations.ts +108 -630
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type {
|
|
8
|
+
CopyOrgKeyMaterialBody,
|
|
9
|
+
ErrorEnvelope,
|
|
10
|
+
ProvisionOrganizationRunloopAccount200,
|
|
11
|
+
SetOrgSecretBody,
|
|
12
|
+
SetSandboxProviderBody,
|
|
13
|
+
ValidateSandboxProviderBody
|
|
14
|
+
} from './model/index.js';
|
|
15
|
+
|
|
16
|
+
import { apiFetch } from '../http.js';
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export type completeOrgBootstrapResponse200 = {
|
|
20
|
+
data: void
|
|
21
|
+
status: 200
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type completeOrgBootstrapResponseSuccess = (completeOrgBootstrapResponse200) & {
|
|
25
|
+
headers: Headers;
|
|
26
|
+
};
|
|
27
|
+
;
|
|
28
|
+
|
|
29
|
+
export type completeOrgBootstrapResponse = (completeOrgBootstrapResponseSuccess)
|
|
30
|
+
|
|
31
|
+
export const getCompleteOrgBootstrapUrl = () => {
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
return `/org-setup/bootstrap-complete`
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @summary Mark the org's guided setup as complete.
|
|
41
|
+
*/
|
|
42
|
+
export const completeOrgBootstrap = async ( options?: RequestInit): Promise<completeOrgBootstrapResponse> => {
|
|
43
|
+
|
|
44
|
+
return apiFetch<completeOrgBootstrapResponse>(getCompleteOrgBootstrapUrl(),
|
|
45
|
+
{
|
|
46
|
+
...options,
|
|
47
|
+
method: 'POST'
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
);}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
export type copyOrgKeyMaterialResponse200 = {
|
|
55
|
+
data: void
|
|
56
|
+
status: 200
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type copyOrgKeyMaterialResponseSuccess = (copyOrgKeyMaterialResponse200) & {
|
|
60
|
+
headers: Headers;
|
|
61
|
+
};
|
|
62
|
+
;
|
|
63
|
+
|
|
64
|
+
export type copyOrgKeyMaterialResponse = (copyOrgKeyMaterialResponseSuccess)
|
|
65
|
+
|
|
66
|
+
export const getCopyOrgKeyMaterialUrl = () => {
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
return `/org-setup/copy-key-material`
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The caller needs secrets access on both the source and target orgs.
|
|
76
|
+
* @summary Copy sandbox and model provider keys from another org.
|
|
77
|
+
*/
|
|
78
|
+
export const copyOrgKeyMaterial = async (copyOrgKeyMaterialBody: CopyOrgKeyMaterialBody, options?: RequestInit): Promise<copyOrgKeyMaterialResponse> => {
|
|
79
|
+
|
|
80
|
+
return apiFetch<copyOrgKeyMaterialResponse>(getCopyOrgKeyMaterialUrl(),
|
|
81
|
+
{
|
|
82
|
+
...options,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
85
|
+
body: JSON.stringify(copyOrgKeyMaterialBody)
|
|
86
|
+
}
|
|
87
|
+
);}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
export type completePluginSetupStepResponse200 = {
|
|
91
|
+
data: void
|
|
92
|
+
status: 200
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type completePluginSetupStepResponseSuccess = (completePluginSetupStepResponse200) & {
|
|
96
|
+
headers: Headers;
|
|
97
|
+
};
|
|
98
|
+
;
|
|
99
|
+
|
|
100
|
+
export type completePluginSetupStepResponse = (completePluginSetupStepResponseSuccess)
|
|
101
|
+
|
|
102
|
+
export const getCompletePluginSetupStepUrl = (plugin: string,
|
|
103
|
+
step: string,) => {
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
return `/org-setup/plugins/${encodeURIComponent(String(plugin))}/setup-steps/${encodeURIComponent(String(step))}/complete`
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @summary Mark a plugin setup step as complete.
|
|
113
|
+
*/
|
|
114
|
+
export const completePluginSetupStep = async (plugin: string,
|
|
115
|
+
step: string, options?: RequestInit): Promise<completePluginSetupStepResponse> => {
|
|
116
|
+
|
|
117
|
+
return apiFetch<completePluginSetupStepResponse>(getCompletePluginSetupStepUrl(plugin,step),
|
|
118
|
+
{
|
|
119
|
+
...options,
|
|
120
|
+
method: 'POST'
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
);}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
export type testPluginSetupStepResponse200 = {
|
|
128
|
+
data: void
|
|
129
|
+
status: 200
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type testPluginSetupStepResponseSuccess = (testPluginSetupStepResponse200) & {
|
|
133
|
+
headers: Headers;
|
|
134
|
+
};
|
|
135
|
+
;
|
|
136
|
+
|
|
137
|
+
export type testPluginSetupStepResponse = (testPluginSetupStepResponseSuccess)
|
|
138
|
+
|
|
139
|
+
export const getTestPluginSetupStepUrl = (plugin: string,
|
|
140
|
+
step: string,) => {
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
return `/org-setup/plugins/${encodeURIComponent(String(plugin))}/setup-steps/${encodeURIComponent(String(step))}/test`
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @summary Run a plugin setup step's connection test.
|
|
150
|
+
*/
|
|
151
|
+
export const testPluginSetupStep = async (plugin: string,
|
|
152
|
+
step: string, options?: RequestInit): Promise<testPluginSetupStepResponse> => {
|
|
153
|
+
|
|
154
|
+
return apiFetch<testPluginSetupStepResponse>(getTestPluginSetupStepUrl(plugin,step),
|
|
155
|
+
{
|
|
156
|
+
...options,
|
|
157
|
+
method: 'POST'
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
);}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
export type listPluginSetupStepsResponse200 = {
|
|
165
|
+
data: void
|
|
166
|
+
status: 200
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type listPluginSetupStepsResponseSuccess = (listPluginSetupStepsResponse200) & {
|
|
170
|
+
headers: Headers;
|
|
171
|
+
};
|
|
172
|
+
;
|
|
173
|
+
|
|
174
|
+
export type listPluginSetupStepsResponse = (listPluginSetupStepsResponseSuccess)
|
|
175
|
+
|
|
176
|
+
export const getListPluginSetupStepsUrl = () => {
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
return `/org-setup/plugins/setup-steps`
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @summary List setup steps for the org's active plugins.
|
|
186
|
+
*/
|
|
187
|
+
export const listPluginSetupSteps = async ( options?: RequestInit): Promise<listPluginSetupStepsResponse> => {
|
|
188
|
+
|
|
189
|
+
return apiFetch<listPluginSetupStepsResponse>(getListPluginSetupStepsUrl(),
|
|
190
|
+
{
|
|
191
|
+
...options,
|
|
192
|
+
method: 'GET'
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
}
|
|
196
|
+
);}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
export type provisionOrganizationRunloopAccountResponse200 = {
|
|
200
|
+
data: ProvisionOrganizationRunloopAccount200
|
|
201
|
+
status: 200
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type provisionOrganizationRunloopAccountResponse400 = {
|
|
205
|
+
data: ErrorEnvelope
|
|
206
|
+
status: 400
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type provisionOrganizationRunloopAccountResponse404 = {
|
|
210
|
+
data: ErrorEnvelope
|
|
211
|
+
status: 404
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type provisionOrganizationRunloopAccountResponse409 = {
|
|
215
|
+
data: ErrorEnvelope
|
|
216
|
+
status: 409
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type provisionOrganizationRunloopAccountResponse503 = {
|
|
220
|
+
data: ErrorEnvelope
|
|
221
|
+
status: 503
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export type provisionOrganizationRunloopAccountResponseSuccess = (provisionOrganizationRunloopAccountResponse200) & {
|
|
225
|
+
headers: Headers;
|
|
226
|
+
};
|
|
227
|
+
export type provisionOrganizationRunloopAccountResponseError = (provisionOrganizationRunloopAccountResponse400 | provisionOrganizationRunloopAccountResponse404 | provisionOrganizationRunloopAccountResponse409 | provisionOrganizationRunloopAccountResponse503) & {
|
|
228
|
+
headers: Headers;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export type provisionOrganizationRunloopAccountResponse = (provisionOrganizationRunloopAccountResponseSuccess | provisionOrganizationRunloopAccountResponseError)
|
|
232
|
+
|
|
233
|
+
export const getProvisionOrganizationRunloopAccountUrl = () => {
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
return `/org-setup/runloop-provider/provision`
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @summary Provision a Runloop account for an organization
|
|
243
|
+
*/
|
|
244
|
+
export const provisionOrganizationRunloopAccount = async ( options?: RequestInit): Promise<provisionOrganizationRunloopAccountResponse> => {
|
|
245
|
+
|
|
246
|
+
return apiFetch<provisionOrganizationRunloopAccountResponse>(getProvisionOrganizationRunloopAccountUrl(),
|
|
247
|
+
{
|
|
248
|
+
...options,
|
|
249
|
+
method: 'POST'
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
}
|
|
253
|
+
);}
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
export type getSandboxProviderResponse200 = {
|
|
257
|
+
data: void
|
|
258
|
+
status: 200
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type getSandboxProviderResponseSuccess = (getSandboxProviderResponse200) & {
|
|
262
|
+
headers: Headers;
|
|
263
|
+
};
|
|
264
|
+
;
|
|
265
|
+
|
|
266
|
+
export type getSandboxProviderResponse = (getSandboxProviderResponseSuccess)
|
|
267
|
+
|
|
268
|
+
export const getGetSandboxProviderUrl = () => {
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
return `/org-setup/sandbox-provider`
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @summary Report the org's sandbox provider key and account.
|
|
278
|
+
*/
|
|
279
|
+
export const getSandboxProvider = async ( options?: RequestInit): Promise<getSandboxProviderResponse> => {
|
|
280
|
+
|
|
281
|
+
return apiFetch<getSandboxProviderResponse>(getGetSandboxProviderUrl(),
|
|
282
|
+
{
|
|
283
|
+
...options,
|
|
284
|
+
method: 'GET'
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
}
|
|
288
|
+
);}
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
export type setSandboxProviderResponse200 = {
|
|
292
|
+
data: void
|
|
293
|
+
status: 200
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type setSandboxProviderResponseSuccess = (setSandboxProviderResponse200) & {
|
|
297
|
+
headers: Headers;
|
|
298
|
+
};
|
|
299
|
+
;
|
|
300
|
+
|
|
301
|
+
export type setSandboxProviderResponse = (setSandboxProviderResponseSuccess)
|
|
302
|
+
|
|
303
|
+
export const getSetSandboxProviderUrl = () => {
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
return `/org-setup/sandbox-provider`
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @summary Validate and save the org's sandbox provider API key.
|
|
313
|
+
*/
|
|
314
|
+
export const setSandboxProvider = async (setSandboxProviderBody: SetSandboxProviderBody, options?: RequestInit): Promise<setSandboxProviderResponse> => {
|
|
315
|
+
|
|
316
|
+
return apiFetch<setSandboxProviderResponse>(getSetSandboxProviderUrl(),
|
|
317
|
+
{
|
|
318
|
+
...options,
|
|
319
|
+
method: 'PUT',
|
|
320
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
321
|
+
body: JSON.stringify(setSandboxProviderBody)
|
|
322
|
+
}
|
|
323
|
+
);}
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
export type getSandboxProviderHealthResponse200 = {
|
|
327
|
+
data: void
|
|
328
|
+
status: 200
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export type getSandboxProviderHealthResponseSuccess = (getSandboxProviderHealthResponse200) & {
|
|
332
|
+
headers: Headers;
|
|
333
|
+
};
|
|
334
|
+
;
|
|
335
|
+
|
|
336
|
+
export type getSandboxProviderHealthResponse = (getSandboxProviderHealthResponseSuccess)
|
|
337
|
+
|
|
338
|
+
export const getGetSandboxProviderHealthUrl = () => {
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
return `/org-setup/sandbox-provider/health`
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @summary Report whether the org's stored sandbox key works.
|
|
348
|
+
*/
|
|
349
|
+
export const getSandboxProviderHealth = async ( options?: RequestInit): Promise<getSandboxProviderHealthResponse> => {
|
|
350
|
+
|
|
351
|
+
return apiFetch<getSandboxProviderHealthResponse>(getGetSandboxProviderHealthUrl(),
|
|
352
|
+
{
|
|
353
|
+
...options,
|
|
354
|
+
method: 'GET'
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
}
|
|
358
|
+
);}
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
export type validateSandboxProviderResponse200 = {
|
|
362
|
+
data: void
|
|
363
|
+
status: 200
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export type validateSandboxProviderResponseSuccess = (validateSandboxProviderResponse200) & {
|
|
367
|
+
headers: Headers;
|
|
368
|
+
};
|
|
369
|
+
;
|
|
370
|
+
|
|
371
|
+
export type validateSandboxProviderResponse = (validateSandboxProviderResponseSuccess)
|
|
372
|
+
|
|
373
|
+
export const getValidateSandboxProviderUrl = () => {
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
return `/org-setup/sandbox-provider/validate`
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @summary Check a sandbox provider API key without saving it.
|
|
383
|
+
*/
|
|
384
|
+
export const validateSandboxProvider = async (validateSandboxProviderBody: ValidateSandboxProviderBody, options?: RequestInit): Promise<validateSandboxProviderResponse> => {
|
|
385
|
+
|
|
386
|
+
return apiFetch<validateSandboxProviderResponse>(getValidateSandboxProviderUrl(),
|
|
387
|
+
{
|
|
388
|
+
...options,
|
|
389
|
+
method: 'POST',
|
|
390
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
391
|
+
body: JSON.stringify(validateSandboxProviderBody)
|
|
392
|
+
}
|
|
393
|
+
);}
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
export type setOrgSecretResponse200 = {
|
|
397
|
+
data: void
|
|
398
|
+
status: 200
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export type setOrgSecretResponseSuccess = (setOrgSecretResponse200) & {
|
|
402
|
+
headers: Headers;
|
|
403
|
+
};
|
|
404
|
+
;
|
|
405
|
+
|
|
406
|
+
export type setOrgSecretResponse = (setOrgSecretResponseSuccess)
|
|
407
|
+
|
|
408
|
+
export const getSetOrgSecretUrl = (name: string,) => {
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
return `/org-setup/secrets/${encodeURIComponent(String(name))}`
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* @summary Save an org secret by name.
|
|
418
|
+
*/
|
|
419
|
+
export const setOrgSecret = async (name: string,
|
|
420
|
+
setOrgSecretBody: SetOrgSecretBody, options?: RequestInit): Promise<setOrgSecretResponse> => {
|
|
421
|
+
|
|
422
|
+
return apiFetch<setOrgSecretResponse>(getSetOrgSecretUrl(name),
|
|
423
|
+
{
|
|
424
|
+
...options,
|
|
425
|
+
method: 'PUT',
|
|
426
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
427
|
+
body: JSON.stringify(setOrgSecretBody)
|
|
428
|
+
}
|
|
429
|
+
);}
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
export type getOrgSecretsStatusResponse200 = {
|
|
433
|
+
data: void
|
|
434
|
+
status: 200
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export type getOrgSecretsStatusResponseSuccess = (getOrgSecretsStatusResponse200) & {
|
|
438
|
+
headers: Headers;
|
|
439
|
+
};
|
|
440
|
+
;
|
|
441
|
+
|
|
442
|
+
export type getOrgSecretsStatusResponse = (getOrgSecretsStatusResponseSuccess)
|
|
443
|
+
|
|
444
|
+
export const getGetOrgSecretsStatusUrl = () => {
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
return `/org-setup/secrets/status`
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @summary Report which of the org's secrets are set.
|
|
454
|
+
*/
|
|
455
|
+
export const getOrgSecretsStatus = async ( options?: RequestInit): Promise<getOrgSecretsStatusResponse> => {
|
|
456
|
+
|
|
457
|
+
return apiFetch<getOrgSecretsStatusResponse>(getGetOrgSecretsStatusUrl(),
|
|
458
|
+
{
|
|
459
|
+
...options,
|
|
460
|
+
method: 'GET'
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
}
|
|
464
|
+
);}
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
export type getOrgSetupStateResponse200 = {
|
|
468
|
+
data: void
|
|
469
|
+
status: 200
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export type getOrgSetupStateResponseSuccess = (getOrgSetupStateResponse200) & {
|
|
473
|
+
headers: Headers;
|
|
474
|
+
};
|
|
475
|
+
;
|
|
476
|
+
|
|
477
|
+
export type getOrgSetupStateResponse = (getOrgSetupStateResponseSuccess)
|
|
478
|
+
|
|
479
|
+
export const getGetOrgSetupStateUrl = () => {
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
return `/org-setup/state`
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @summary Report the org's guided setup progress.
|
|
489
|
+
*/
|
|
490
|
+
export const getOrgSetupState = async ( options?: RequestInit): Promise<getOrgSetupStateResponse> => {
|
|
491
|
+
|
|
492
|
+
return apiFetch<getOrgSetupStateResponse>(getGetOrgSetupStateUrl(),
|
|
493
|
+
{
|
|
494
|
+
...options,
|
|
495
|
+
method: 'GET'
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
}
|
|
499
|
+
);}
|
|
500
|
+
|
|
501
|
+
|