@zitadel/api 0.7.0 → 0.9.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/dist/{api-factory-BPmRCU7u.mjs → api-factory-ConF3NN2.mjs} +14 -2
- package/dist/api-factory-ConF3NN2.mjs.map +1 -0
- package/dist/{api-factory-DCzYxpdV.d.mts → api-factory-DOg9w_Du.d.mts} +8 -3
- package/dist/api-factory-DOg9w_Du.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +225 -109
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +737 -41
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +607 -194
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +801 -359
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +17 -3
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.d.mts.map +1 -1
- package/dist/generated/operations.mjs +46 -4
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-BwYxe7Dw.d.mts → index-REGtKmAu.d.mts} +1466 -327
- package/dist/index-REGtKmAu.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/api-factory.mjs +1 -1
- package/dist/runtime/config.d.mts +1 -1
- package/dist/runtime/config.mjs +1 -1
- package/dist/{zitadelNextGen-DsPFGqLs.mjs → zitadelNextGen-CVFzR-dx.mjs} +154 -570
- package/dist/zitadelNextGen-CVFzR-dx.mjs.map +1 -0
- package/dist/{zitadelNextGen-SGK-fW1x.d.mts → zitadelNextGen-tszErftX.d.mts} +78 -32
- package/dist/zitadelNextGen-tszErftX.d.mts.map +1 -0
- package/package.json +2 -2
- package/src/generated/endpoints/zitadelNextGen.faker.ts +14 -10
- package/src/generated/endpoints/zitadelNextGen.msw.ts +278 -216
- package/src/generated/endpoints/zitadelNextGen.ts +222 -748
- package/src/generated/endpoints/zitadelNextGen.zod.ts +687 -324
- package/src/generated/model/acceptInvitation200.ts +84 -12
- package/src/generated/model/acceptInvitationDefault.ts +18 -0
- package/src/generated/model/buildReleaseBodyBundle.ts +1 -2
- package/src/generated/model/buildReleaseBodyBundleOauth.ts +1 -2
- package/src/generated/model/buildReleaseParams.ts +7 -7
- package/src/generated/model/cancelInvitationParams.ts +7 -7
- package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +1 -1
- package/src/generated/model/createAuthAttemptChallenge201Payload.ts +1 -1
- package/src/generated/model/createDeploymentParams.ts +7 -7
- package/src/generated/model/createGrantParams.ts +7 -7
- package/src/generated/model/createInvitation201.ts +84 -12
- package/src/generated/model/createInvitationBody.ts +4 -4
- package/src/generated/model/createInvitationParams.ts +7 -7
- package/src/generated/model/createReleaseParams.ts +7 -7
- package/src/generated/model/createTeamParams.ts +7 -7
- package/src/generated/model/createUserParams.ts +23 -23
- package/src/generated/model/deleteGrantParams.ts +7 -7
- package/src/generated/model/deleteVariableParams.ts +12 -12
- package/src/generated/model/evaluatePolicyParams.ts +7 -7
- package/src/generated/model/exchangeHandoffParams.ts +7 -7
- package/src/generated/model/getApplicationParams.ts +7 -7
- package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +1 -1
- package/src/generated/model/getDeploymentParams.ts +7 -7
- package/src/generated/model/getEvent200.ts +192 -10
- package/src/generated/model/getEventParams.ts +7 -7
- package/src/generated/model/getGrantParams.ts +13 -13
- package/src/generated/model/getIdpParams.ts +7 -7
- package/src/generated/model/getIdpRevisionParams.ts +7 -7
- package/src/generated/model/getInvitation200.ts +84 -12
- package/src/generated/model/getInvitationParams.ts +7 -7
- package/src/generated/model/getMyPasswordStateParams.ts +16 -16
- package/src/generated/model/getMySessionCsrfTokenParams.ts +16 -16
- package/src/generated/model/getMySessionParams.ts +16 -16
- package/src/generated/model/getMyUserParams.ts +16 -16
- package/src/generated/model/getMyUserSchemaParams.ts +16 -16
- package/src/generated/model/getOAuthSettings200.ts +1 -2
- package/src/generated/model/getOAuthSettings200Oauth.ts +1 -2
- package/src/generated/model/getOAuthSettingsDefault.ts +18 -0
- package/src/generated/model/getPolicyParams.ts +7 -7
- package/src/generated/model/getPolicyRevisionParams.ts +7 -7
- package/src/generated/model/getProjectClaimStatusParams.ts +5 -5
- package/src/generated/model/getProjectClaimWindowParams.ts +5 -5
- package/src/generated/model/getReleaseParams.ts +7 -7
- package/src/generated/model/getSchemaParams.ts +11 -11
- package/src/generated/model/getUserParams.ts +21 -21
- package/src/generated/model/getVariableParams.ts +12 -12
- package/src/generated/model/index.ts +18 -7
- package/src/generated/model/listBrandingParams.ts +20 -20
- package/src/generated/model/listDeploymentVariablesParams.ts +7 -7
- package/src/generated/model/listDeploymentsParams.ts +42 -44
- package/src/generated/model/listEvents200EventsItem.ts +192 -10
- package/src/generated/model/listEventsParams.ts +83 -105
- package/src/generated/model/listFlowDefinitionsParams.ts +44 -48
- package/src/generated/model/listIdpRevisionsParams.ts +20 -20
- package/src/generated/model/listInvitations200InvitationsItem.ts +84 -12
- package/src/generated/model/listInvitationsExpandItem.ts +25 -0
- package/src/generated/model/listInvitationsParams.ts +31 -31
- package/src/generated/model/listInvitationsStatusItem.ts +22 -0
- package/src/generated/model/listMyIdentityLinksParams.ts +29 -29
- package/src/generated/model/listMyPasskeysParams.ts +29 -29
- package/src/generated/model/listMyProjectsParams.ts +52 -52
- package/src/generated/model/listMyTeamsParams.ts +29 -29
- package/src/generated/model/listPoliciesParams.ts +22 -24
- package/src/generated/model/listPolicyRevisionsParams.ts +20 -20
- package/src/generated/model/listProjectAdminsParams.ts +13 -13
- package/src/generated/model/listProjectMembers200.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItem.ts +38 -0
- package/src/generated/model/listProjectMembers200MembersItemRelation.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItemSourcesItem.ts +55 -0
- package/src/generated/model/listProjectMembers200MembersItemUser.ts +40 -0
- package/src/generated/model/{acceptInvitation429.ts → listProjectMembers400.ts} +3 -3
- package/src/generated/model/{lookupInvitation429Details.ts → listProjectMembers400Details.ts} +1 -1
- package/src/generated/model/{lookupInvitation429.ts → listProjectMembers401.ts} +3 -3
- package/src/generated/model/{acceptInvitation429Details.ts → listProjectMembers401Details.ts} +1 -1
- package/src/generated/model/{rejectInvitation429.ts → listProjectMembers403.ts} +3 -3
- package/src/generated/model/{rejectInvitation429Details.ts → listProjectMembers403Details.ts} +1 -1
- package/src/generated/model/listProjectMembers404.ts +20 -0
- package/src/generated/model/listProjectMembers404Details.ts +12 -0
- package/src/generated/model/listProjectMembersDefault.ts +81 -0
- package/src/generated/model/listProjectMembersParams.ts +29 -0
- package/src/generated/model/listProjectMembersRelation.ts +16 -0
- package/src/generated/model/listProjectPreviewsParams.ts +13 -13
- package/src/generated/model/listReleasesParams.ts +60 -60
- package/src/generated/model/listSchemasParams.ts +54 -56
- package/src/generated/model/listUserIdentityLinksParams.ts +13 -13
- package/src/generated/model/listUserPasskeysParams.ts +13 -13
- package/src/generated/model/listUserTeamsParams.ts +13 -13
- package/src/generated/model/listVariablesParams.ts +12 -12
- package/src/generated/model/lookupInvitation200.ts +58 -0
- package/src/generated/model/publishApplicationParams.ts +7 -7
- package/src/generated/model/publishBrandingParams.ts +7 -7
- package/src/generated/model/publishIdpParams.ts +7 -7
- package/src/generated/model/publishPolicyParams.ts +7 -7
- package/src/generated/model/publishSchemaParams.ts +12 -12
- package/src/generated/model/queryGrantsParams.ts +7 -7
- package/src/generated/model/queryIdpsParams.ts +7 -7
- package/src/generated/model/querySessionsParams.ts +7 -7
- package/src/generated/model/queryTeamsParams.ts +6 -6
- package/src/generated/model/queryUsersParams.ts +6 -6
- package/src/generated/model/rejectInvitation200.ts +84 -12
- package/src/generated/model/rejectInvitationDefault.ts +18 -0
- package/src/generated/model/revokeMySessionParams.ts +16 -16
- package/src/generated/model/revokeReleaseParams.ts +7 -7
- package/src/generated/model/rollbackDeploymentParams.ts +7 -7
- package/src/generated/model/searchParams.ts +7 -7
- package/src/generated/model/setVariablesParams.ts +12 -12
- package/src/generated/model/updateMyUserParams.ts +16 -16
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +1 -1
- package/src/generated/operations.ts +46 -4
- package/src/generated/paging.ts +5 -0
- package/dist/api-factory-BPmRCU7u.mjs.map +0 -1
- package/dist/api-factory-DCzYxpdV.d.mts.map +0 -1
- package/dist/index-BwYxe7Dw.d.mts.map +0 -1
- package/dist/zitadelNextGen-DsPFGqLs.mjs.map +0 -1
- package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +0 -1
- package/src/generated/model/listInvitationsStatus.ts +0 -17
|
@@ -118,6 +118,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
118
118
|
getListPoliciesUrl: () => getListPoliciesUrl,
|
|
119
119
|
getListPolicyRevisionsUrl: () => getListPolicyRevisionsUrl,
|
|
120
120
|
getListProjectAdminsUrl: () => getListProjectAdminsUrl,
|
|
121
|
+
getListProjectMembersUrl: () => getListProjectMembersUrl,
|
|
121
122
|
getListProjectPreviewsUrl: () => getListProjectPreviewsUrl,
|
|
122
123
|
getListReleasesUrl: () => getListReleasesUrl,
|
|
123
124
|
getListSchemasUrl: () => getListSchemasUrl,
|
|
@@ -188,6 +189,7 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
188
189
|
listPolicies: () => listPolicies,
|
|
189
190
|
listPolicyRevisions: () => listPolicyRevisions,
|
|
190
191
|
listProjectAdmins: () => listProjectAdmins,
|
|
192
|
+
listProjectMembers: () => listProjectMembers,
|
|
191
193
|
listProjectPreviews: () => listProjectPreviews,
|
|
192
194
|
listReleases: () => listReleases,
|
|
193
195
|
listSchemas: () => listSchemas,
|
|
@@ -225,6 +227,19 @@ var zitadelNextGen_exports = /* @__PURE__ */ __exportAll({
|
|
|
225
227
|
updateUser: () => updateUser,
|
|
226
228
|
verifyAuthAttemptChallenge: () => verifyAuthAttemptChallenge
|
|
227
229
|
});
|
|
230
|
+
const getHeaders = (...sources) => {
|
|
231
|
+
const seen = /* @__PURE__ */ new Set();
|
|
232
|
+
const layers = [];
|
|
233
|
+
for (const source of sources.reverse()) {
|
|
234
|
+
if (!source) continue;
|
|
235
|
+
const entries = source instanceof Headers ? source.entries() : Symbol.iterator in source ? Array.from(source, (entry) => Array.from(entry)) : Object.entries(source);
|
|
236
|
+
const layer = [];
|
|
237
|
+
for (const [name, value] of entries) if (value !== void 0 && !seen.has(name.toLowerCase())) layer.push([name, value]);
|
|
238
|
+
for (const [name] of layer) seen.add(name.toLowerCase());
|
|
239
|
+
layers.push(layer);
|
|
240
|
+
}
|
|
241
|
+
return Object.fromEntries(layers.reverse().flat());
|
|
242
|
+
};
|
|
228
243
|
const getGetLiveUrl = () => {
|
|
229
244
|
return `${getApiBaseUrl()}/livez`;
|
|
230
245
|
};
|
|
@@ -284,21 +299,10 @@ const getCreateUserUrl = (params) => {
|
|
|
284
299
|
* @summary Create a user
|
|
285
300
|
*/
|
|
286
301
|
const createUser = async (createUserBody, params, options) => {
|
|
287
|
-
const getHeaders = (h) => {
|
|
288
|
-
if (!h) return {};
|
|
289
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
290
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
291
|
-
const headers = {};
|
|
292
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
293
|
-
return headers;
|
|
294
|
-
};
|
|
295
302
|
return customFetch(getCreateUserUrl(params), {
|
|
296
303
|
...options,
|
|
297
304
|
method: "POST",
|
|
298
|
-
headers: {
|
|
299
|
-
"Content-Type": "application/json",
|
|
300
|
-
...getHeaders(options?.headers)
|
|
301
|
-
},
|
|
305
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
302
306
|
body: JSON.stringify(createUserBody)
|
|
303
307
|
});
|
|
304
308
|
};
|
|
@@ -328,21 +332,10 @@ const getQueryUsersUrl = (params) => {
|
|
|
328
332
|
* @summary Query users
|
|
329
333
|
*/
|
|
330
334
|
const queryUsers = async (queryUsersBody, params, options) => {
|
|
331
|
-
const getHeaders = (h) => {
|
|
332
|
-
if (!h) return {};
|
|
333
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
334
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
335
|
-
const headers = {};
|
|
336
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
337
|
-
return headers;
|
|
338
|
-
};
|
|
339
335
|
return customFetch(getQueryUsersUrl(params), {
|
|
340
336
|
...options,
|
|
341
337
|
method: "POST",
|
|
342
|
-
headers: {
|
|
343
|
-
"Content-Type": "application/json",
|
|
344
|
-
...getHeaders(options?.headers)
|
|
345
|
-
},
|
|
338
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
346
339
|
body: JSON.stringify(queryUsersBody)
|
|
347
340
|
});
|
|
348
341
|
};
|
|
@@ -391,21 +384,10 @@ const getUpdateUserUrl = (userId) => {
|
|
|
391
384
|
* @summary Update a user by ID
|
|
392
385
|
*/
|
|
393
386
|
const updateUser = async (userId, updateUserBody, options) => {
|
|
394
|
-
const getHeaders = (h) => {
|
|
395
|
-
if (!h) return {};
|
|
396
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
397
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
398
|
-
const headers = {};
|
|
399
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
400
|
-
return headers;
|
|
401
|
-
};
|
|
402
387
|
return customFetch(getUpdateUserUrl(userId), {
|
|
403
388
|
...options,
|
|
404
389
|
method: "PATCH",
|
|
405
|
-
headers: {
|
|
406
|
-
"Content-Type": "application/json",
|
|
407
|
-
...getHeaders(options?.headers)
|
|
408
|
-
},
|
|
390
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
409
391
|
body: JSON.stringify(updateUserBody)
|
|
410
392
|
});
|
|
411
393
|
};
|
|
@@ -489,21 +471,10 @@ const getCreateUserPasskeyRegistrationUrl = (userId) => {
|
|
|
489
471
|
* @summary Begin a passkey registration
|
|
490
472
|
*/
|
|
491
473
|
const createUserPasskeyRegistration = async (userId, createUserPasskeyRegistrationBody, options) => {
|
|
492
|
-
const getHeaders = (h) => {
|
|
493
|
-
if (!h) return {};
|
|
494
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
495
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
496
|
-
const headers = {};
|
|
497
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
498
|
-
return headers;
|
|
499
|
-
};
|
|
500
474
|
return customFetch(getCreateUserPasskeyRegistrationUrl(userId), {
|
|
501
475
|
...options,
|
|
502
476
|
method: "POST",
|
|
503
|
-
headers: {
|
|
504
|
-
"Content-Type": "application/json",
|
|
505
|
-
...getHeaders(options?.headers)
|
|
506
|
-
},
|
|
477
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
507
478
|
body: JSON.stringify(createUserPasskeyRegistrationBody)
|
|
508
479
|
});
|
|
509
480
|
};
|
|
@@ -523,21 +494,10 @@ const getCompleteUserPasskeyRegistrationUrl = (userId, registrationId) => {
|
|
|
523
494
|
* @summary Finish a passkey registration
|
|
524
495
|
*/
|
|
525
496
|
const completeUserPasskeyRegistration = async (userId, registrationId, completeUserPasskeyRegistrationBody, options) => {
|
|
526
|
-
const getHeaders = (h) => {
|
|
527
|
-
if (!h) return {};
|
|
528
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
529
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
530
|
-
const headers = {};
|
|
531
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
532
|
-
return headers;
|
|
533
|
-
};
|
|
534
497
|
return customFetch(getCompleteUserPasskeyRegistrationUrl(userId, registrationId), {
|
|
535
498
|
...options,
|
|
536
499
|
method: "POST",
|
|
537
|
-
headers: {
|
|
538
|
-
"Content-Type": "application/json",
|
|
539
|
-
...getHeaders(options?.headers)
|
|
540
|
-
},
|
|
500
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
541
501
|
body: JSON.stringify(completeUserPasskeyRegistrationBody)
|
|
542
502
|
});
|
|
543
503
|
};
|
|
@@ -588,21 +548,10 @@ const getSetUserPasswordUrl = (userId) => {
|
|
|
588
548
|
* @summary Set a user's password
|
|
589
549
|
*/
|
|
590
550
|
const setUserPassword = async (userId, setUserPasswordBody, options) => {
|
|
591
|
-
const getHeaders = (h) => {
|
|
592
|
-
if (!h) return {};
|
|
593
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
594
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
595
|
-
const headers = {};
|
|
596
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
597
|
-
return headers;
|
|
598
|
-
};
|
|
599
551
|
return customFetch(getSetUserPasswordUrl(userId), {
|
|
600
552
|
...options,
|
|
601
553
|
method: "PUT",
|
|
602
|
-
headers: {
|
|
603
|
-
"Content-Type": "application/json",
|
|
604
|
-
...getHeaders(options?.headers)
|
|
605
|
-
},
|
|
554
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
606
555
|
body: JSON.stringify(setUserPasswordBody)
|
|
607
556
|
});
|
|
608
557
|
};
|
|
@@ -673,21 +622,10 @@ const getUpdateMyUserUrl = (params) => {
|
|
|
673
622
|
* @summary Update my user information
|
|
674
623
|
*/
|
|
675
624
|
const updateMyUser = async (updateMyUserBody, params, options) => {
|
|
676
|
-
const getHeaders = (h) => {
|
|
677
|
-
if (!h) return {};
|
|
678
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
679
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
680
|
-
const headers = {};
|
|
681
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
682
|
-
return headers;
|
|
683
|
-
};
|
|
684
625
|
return customFetch(getUpdateMyUserUrl(params), {
|
|
685
626
|
...options,
|
|
686
627
|
method: "PATCH",
|
|
687
|
-
headers: {
|
|
688
|
-
"Content-Type": "application/json",
|
|
689
|
-
...getHeaders(options?.headers)
|
|
690
|
-
},
|
|
628
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
691
629
|
body: JSON.stringify(updateMyUserBody)
|
|
692
630
|
});
|
|
693
631
|
};
|
|
@@ -899,21 +837,10 @@ const getCreateFlowUrl = () => {
|
|
|
899
837
|
* @summary Start a flow
|
|
900
838
|
*/
|
|
901
839
|
const createFlow = async (createFlowBody, options) => {
|
|
902
|
-
const getHeaders = (h) => {
|
|
903
|
-
if (!h) return {};
|
|
904
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
905
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
906
|
-
const headers = {};
|
|
907
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
908
|
-
return headers;
|
|
909
|
-
};
|
|
910
840
|
return customFetch(getCreateFlowUrl(), {
|
|
911
841
|
...options,
|
|
912
842
|
method: "POST",
|
|
913
|
-
headers: {
|
|
914
|
-
"Content-Type": "application/json",
|
|
915
|
-
...getHeaders(options?.headers)
|
|
916
|
-
},
|
|
843
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
917
844
|
body: JSON.stringify(createFlowBody)
|
|
918
845
|
});
|
|
919
846
|
};
|
|
@@ -1017,21 +944,10 @@ const getSubmitFlowStepUrl = (flowId) => {
|
|
|
1017
944
|
* @summary Submit a flow step
|
|
1018
945
|
*/
|
|
1019
946
|
const submitFlowStep = async (flowId, submitFlowStepBody, options) => {
|
|
1020
|
-
const getHeaders = (h) => {
|
|
1021
|
-
if (!h) return {};
|
|
1022
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1023
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1024
|
-
const headers = {};
|
|
1025
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1026
|
-
return headers;
|
|
1027
|
-
};
|
|
1028
947
|
return customFetch(getSubmitFlowStepUrl(flowId), {
|
|
1029
948
|
...options,
|
|
1030
949
|
method: "POST",
|
|
1031
|
-
headers: {
|
|
1032
|
-
"Content-Type": "application/json",
|
|
1033
|
-
...getHeaders(options?.headers)
|
|
1034
|
-
},
|
|
950
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1035
951
|
body: JSON.stringify(submitFlowStepBody)
|
|
1036
952
|
});
|
|
1037
953
|
};
|
|
@@ -1071,21 +987,10 @@ const getCreateAuthAttemptUrl = () => {
|
|
|
1071
987
|
* @summary Create an authentication attempt
|
|
1072
988
|
*/
|
|
1073
989
|
const createAuthAttempt = async (createAuthAttemptBody, options) => {
|
|
1074
|
-
const getHeaders = (h) => {
|
|
1075
|
-
if (!h) return {};
|
|
1076
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1077
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1078
|
-
const headers = {};
|
|
1079
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1080
|
-
return headers;
|
|
1081
|
-
};
|
|
1082
990
|
return customFetch(getCreateAuthAttemptUrl(), {
|
|
1083
991
|
...options,
|
|
1084
992
|
method: "POST",
|
|
1085
|
-
headers: {
|
|
1086
|
-
"Content-Type": "application/json",
|
|
1087
|
-
...getHeaders(options?.headers)
|
|
1088
|
-
},
|
|
993
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1089
994
|
body: JSON.stringify(createAuthAttemptBody)
|
|
1090
995
|
});
|
|
1091
996
|
};
|
|
@@ -1121,21 +1026,10 @@ const getCreateAuthAttemptChallengeUrl = (attemptId) => {
|
|
|
1121
1026
|
* @summary Issue a factor challenge
|
|
1122
1027
|
*/
|
|
1123
1028
|
const createAuthAttemptChallenge = async (attemptId, createAuthAttemptChallengeBody, options) => {
|
|
1124
|
-
const getHeaders = (h) => {
|
|
1125
|
-
if (!h) return {};
|
|
1126
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1127
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1128
|
-
const headers = {};
|
|
1129
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1130
|
-
return headers;
|
|
1131
|
-
};
|
|
1132
1029
|
return customFetch(getCreateAuthAttemptChallengeUrl(attemptId), {
|
|
1133
1030
|
...options,
|
|
1134
1031
|
method: "POST",
|
|
1135
|
-
headers: {
|
|
1136
|
-
"Content-Type": "application/json",
|
|
1137
|
-
...getHeaders(options?.headers)
|
|
1138
|
-
},
|
|
1032
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1139
1033
|
body: JSON.stringify(createAuthAttemptChallengeBody)
|
|
1140
1034
|
});
|
|
1141
1035
|
};
|
|
@@ -1161,21 +1055,10 @@ const getVerifyAuthAttemptChallengeUrl = (attemptId, challengeId) => {
|
|
|
1161
1055
|
* @summary Verify a challenge proof
|
|
1162
1056
|
*/
|
|
1163
1057
|
const verifyAuthAttemptChallenge = async (attemptId, challengeId, verifyAuthAttemptChallengeBody, options) => {
|
|
1164
|
-
const getHeaders = (h) => {
|
|
1165
|
-
if (!h) return {};
|
|
1166
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1167
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1168
|
-
const headers = {};
|
|
1169
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1170
|
-
return headers;
|
|
1171
|
-
};
|
|
1172
1058
|
return customFetch(getVerifyAuthAttemptChallengeUrl(attemptId, challengeId), {
|
|
1173
1059
|
...options,
|
|
1174
1060
|
method: "POST",
|
|
1175
|
-
headers: {
|
|
1176
|
-
"Content-Type": "application/json",
|
|
1177
|
-
...getHeaders(options?.headers)
|
|
1178
|
-
},
|
|
1061
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1179
1062
|
body: JSON.stringify(verifyAuthAttemptChallengeBody)
|
|
1180
1063
|
});
|
|
1181
1064
|
};
|
|
@@ -1224,21 +1107,10 @@ const getCreateProjectUrl = () => {
|
|
|
1224
1107
|
* @summary Create a project
|
|
1225
1108
|
*/
|
|
1226
1109
|
const createProject = async (createProjectBody, options) => {
|
|
1227
|
-
const getHeaders = (h) => {
|
|
1228
|
-
if (!h) return {};
|
|
1229
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1230
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1231
|
-
const headers = {};
|
|
1232
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1233
|
-
return headers;
|
|
1234
|
-
};
|
|
1235
1110
|
return customFetch(getCreateProjectUrl(), {
|
|
1236
1111
|
...options,
|
|
1237
1112
|
method: "POST",
|
|
1238
|
-
headers: {
|
|
1239
|
-
"Content-Type": "application/json",
|
|
1240
|
-
...getHeaders(options?.headers)
|
|
1241
|
-
},
|
|
1113
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1242
1114
|
body: JSON.stringify(createProjectBody)
|
|
1243
1115
|
});
|
|
1244
1116
|
};
|
|
@@ -1255,21 +1127,10 @@ const getQueryProjectsUrl = () => {
|
|
|
1255
1127
|
* @summary Query projects
|
|
1256
1128
|
*/
|
|
1257
1129
|
const queryProjects = async (queryProjectsBody, options) => {
|
|
1258
|
-
const getHeaders = (h) => {
|
|
1259
|
-
if (!h) return {};
|
|
1260
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1261
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1262
|
-
const headers = {};
|
|
1263
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1264
|
-
return headers;
|
|
1265
|
-
};
|
|
1266
1130
|
return customFetch(getQueryProjectsUrl(), {
|
|
1267
1131
|
...options,
|
|
1268
1132
|
method: "POST",
|
|
1269
|
-
headers: {
|
|
1270
|
-
"Content-Type": "application/json",
|
|
1271
|
-
...getHeaders(options?.headers)
|
|
1272
|
-
},
|
|
1133
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1273
1134
|
body: JSON.stringify(queryProjectsBody)
|
|
1274
1135
|
});
|
|
1275
1136
|
};
|
|
@@ -1306,21 +1167,10 @@ const getUpdateProjectUrl = (projectId) => {
|
|
|
1306
1167
|
* @summary Update a project
|
|
1307
1168
|
*/
|
|
1308
1169
|
const updateProject = async (projectId, updateProjectBody, options) => {
|
|
1309
|
-
const getHeaders = (h) => {
|
|
1310
|
-
if (!h) return {};
|
|
1311
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1312
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1313
|
-
const headers = {};
|
|
1314
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1315
|
-
return headers;
|
|
1316
|
-
};
|
|
1317
1170
|
return customFetch(getUpdateProjectUrl(projectId), {
|
|
1318
1171
|
...options,
|
|
1319
1172
|
method: "PATCH",
|
|
1320
|
-
headers: {
|
|
1321
|
-
"Content-Type": "application/json",
|
|
1322
|
-
...getHeaders(options?.headers)
|
|
1323
|
-
},
|
|
1173
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1324
1174
|
body: JSON.stringify(updateProjectBody)
|
|
1325
1175
|
});
|
|
1326
1176
|
};
|
|
@@ -1351,12 +1201,12 @@ const getListProjectAdminsUrl = (projectId, params) => {
|
|
|
1351
1201
|
* whose team or user was deactivated, is not listed through it. Grants that
|
|
1352
1202
|
* expired or carry a lower role are left out. A person whose only access is a
|
|
1353
1203
|
* `viewer` or `editor` grant is not an admin and is not listed. Like the
|
|
1354
|
-
* check,
|
|
1355
|
-
* direct grant
|
|
1204
|
+
* check, a direct user grant requires an active user, so a suspended
|
|
1205
|
+
* person's direct grant is not listed.
|
|
1356
1206
|
*
|
|
1357
|
-
*
|
|
1358
|
-
*
|
|
1359
|
-
*
|
|
1207
|
+
* Every caller who passes the project read check sees every listed admin
|
|
1208
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
1209
|
+
* roster.
|
|
1360
1210
|
*
|
|
1361
1211
|
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
1362
1212
|
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
@@ -1369,6 +1219,58 @@ const listProjectAdmins = async (projectId, params, options) => {
|
|
|
1369
1219
|
method: "GET"
|
|
1370
1220
|
});
|
|
1371
1221
|
};
|
|
1222
|
+
const getListProjectMembersUrl = (projectId, params) => {
|
|
1223
|
+
const normalizedParams = new URLSearchParams();
|
|
1224
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1225
|
+
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1226
|
+
});
|
|
1227
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1228
|
+
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/members?${stringifiedParams}` : `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/members`;
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Lists the people who have a role on a project, with each person's strongest
|
|
1232
|
+
* role and how they hold it.
|
|
1233
|
+
*
|
|
1234
|
+
* A person appears once, with their strongest `relation` (`viewer`, `editor`
|
|
1235
|
+
* or `admin`; a stronger role includes the weaker ones) and one entry in
|
|
1236
|
+
* `sources` per way they hold that role:
|
|
1237
|
+
*
|
|
1238
|
+
* - `owning_team`: an active member of the team that owns the project, the
|
|
1239
|
+
* team a claim attaches the project to. It holds `admin`. Removing a grant
|
|
1240
|
+
* does not remove this access. It ends only when the person leaves the
|
|
1241
|
+
* team or the project changes owner.
|
|
1242
|
+
* - `grant`: an unexpired grant on the project, which is a role given to the
|
|
1243
|
+
* person (`grant_id` only) or to a team they are an active member of
|
|
1244
|
+
* (`grant_id` and `team`). Revoking that grant removes this source.
|
|
1245
|
+
*
|
|
1246
|
+
* Grants of a weaker role than the person's strongest are not in `sources`;
|
|
1247
|
+
* they still show in the project's grants (`queryGrants`,
|
|
1248
|
+
* `POST /grants/query`).
|
|
1249
|
+
*
|
|
1250
|
+
* Pass `relation` to list only the people whose strongest role is at least
|
|
1251
|
+
* that strong: `relation=admin` lists the people who can administer the
|
|
1252
|
+
* project.
|
|
1253
|
+
*
|
|
1254
|
+
* The list follows the authorization check. A person who left a team, or
|
|
1255
|
+
* whose team or user was deactivated, is not listed through it. Expired
|
|
1256
|
+
* grants are left out. Like the check, a direct user grant requires an
|
|
1257
|
+
* active user, so a suspended person's direct grant is not listed.
|
|
1258
|
+
*
|
|
1259
|
+
* Every caller who passes the project read check sees every listed person
|
|
1260
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
1261
|
+
* roster.
|
|
1262
|
+
*
|
|
1263
|
+
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
1264
|
+
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
1265
|
+
* (`sessionCookie`) of a signed-in person who can read the project.
|
|
1266
|
+
* @summary List the members of a project
|
|
1267
|
+
*/
|
|
1268
|
+
const listProjectMembers = async (projectId, params, options) => {
|
|
1269
|
+
return customFetch(getListProjectMembersUrl(projectId, params), {
|
|
1270
|
+
...options,
|
|
1271
|
+
method: "GET"
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1372
1274
|
const getCreateProjectClaimUrl = (projectId) => {
|
|
1373
1275
|
return `${getApiBaseUrl()}/projects/${encodeURIComponent(String(projectId))}/claim/init`;
|
|
1374
1276
|
};
|
|
@@ -1449,21 +1351,10 @@ const getCompleteProjectClaimUrl = (projectId) => {
|
|
|
1449
1351
|
* @summary Complete a project claim
|
|
1450
1352
|
*/
|
|
1451
1353
|
const completeProjectClaim = async (projectId, completeProjectClaimBody, options) => {
|
|
1452
|
-
const getHeaders = (h) => {
|
|
1453
|
-
if (!h) return {};
|
|
1454
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1455
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1456
|
-
const headers = {};
|
|
1457
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1458
|
-
return headers;
|
|
1459
|
-
};
|
|
1460
1354
|
return customFetch(getCompleteProjectClaimUrl(projectId), {
|
|
1461
1355
|
...options,
|
|
1462
1356
|
method: "POST",
|
|
1463
|
-
headers: {
|
|
1464
|
-
"Content-Type": "application/json",
|
|
1465
|
-
...getHeaders(options?.headers)
|
|
1466
|
-
},
|
|
1357
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1467
1358
|
body: JSON.stringify(completeProjectClaimBody)
|
|
1468
1359
|
});
|
|
1469
1360
|
};
|
|
@@ -1519,21 +1410,10 @@ const getAddProjectOriginUrl = (projectId) => {
|
|
|
1519
1410
|
* @summary Add an origin pattern
|
|
1520
1411
|
*/
|
|
1521
1412
|
const addProjectOrigin = async (projectId, addProjectOriginBody, options) => {
|
|
1522
|
-
const getHeaders = (h) => {
|
|
1523
|
-
if (!h) return {};
|
|
1524
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1525
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1526
|
-
const headers = {};
|
|
1527
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1528
|
-
return headers;
|
|
1529
|
-
};
|
|
1530
1413
|
return customFetch(getAddProjectOriginUrl(projectId), {
|
|
1531
1414
|
...options,
|
|
1532
1415
|
method: "POST",
|
|
1533
|
-
headers: {
|
|
1534
|
-
"Content-Type": "application/json",
|
|
1535
|
-
...getHeaders(options?.headers)
|
|
1536
|
-
},
|
|
1416
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1537
1417
|
body: JSON.stringify(addProjectOriginBody)
|
|
1538
1418
|
});
|
|
1539
1419
|
};
|
|
@@ -1553,21 +1433,10 @@ const getRemoveProjectOriginUrl = (projectId) => {
|
|
|
1553
1433
|
* @summary Remove an origin pattern
|
|
1554
1434
|
*/
|
|
1555
1435
|
const removeProjectOrigin = async (projectId, removeProjectOriginBody, options) => {
|
|
1556
|
-
const getHeaders = (h) => {
|
|
1557
|
-
if (!h) return {};
|
|
1558
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1559
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1560
|
-
const headers = {};
|
|
1561
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1562
|
-
return headers;
|
|
1563
|
-
};
|
|
1564
1436
|
return customFetch(getRemoveProjectOriginUrl(projectId), {
|
|
1565
1437
|
...options,
|
|
1566
1438
|
method: "POST",
|
|
1567
|
-
headers: {
|
|
1568
|
-
"Content-Type": "application/json",
|
|
1569
|
-
...getHeaders(options?.headers)
|
|
1570
|
-
},
|
|
1439
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1571
1440
|
body: JSON.stringify(removeProjectOriginBody)
|
|
1572
1441
|
});
|
|
1573
1442
|
};
|
|
@@ -1609,21 +1478,10 @@ const getRemoveProjectPreviewUrl = (projectId) => {
|
|
|
1609
1478
|
* @summary Remove a preview
|
|
1610
1479
|
*/
|
|
1611
1480
|
const removeProjectPreview = async (projectId, removeProjectPreviewBody, options) => {
|
|
1612
|
-
const getHeaders = (h) => {
|
|
1613
|
-
if (!h) return {};
|
|
1614
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1615
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1616
|
-
const headers = {};
|
|
1617
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1618
|
-
return headers;
|
|
1619
|
-
};
|
|
1620
1481
|
return customFetch(getRemoveProjectPreviewUrl(projectId), {
|
|
1621
1482
|
...options,
|
|
1622
1483
|
method: "POST",
|
|
1623
|
-
headers: {
|
|
1624
|
-
"Content-Type": "application/json",
|
|
1625
|
-
...getHeaders(options?.headers)
|
|
1626
|
-
},
|
|
1484
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1627
1485
|
body: JSON.stringify(removeProjectPreviewBody)
|
|
1628
1486
|
});
|
|
1629
1487
|
};
|
|
@@ -1663,21 +1521,10 @@ const getCreateSessionUrl = () => {
|
|
|
1663
1521
|
* @summary Create an anonymous session
|
|
1664
1522
|
*/
|
|
1665
1523
|
const createSession = async (createSessionBody, options) => {
|
|
1666
|
-
const getHeaders = (h) => {
|
|
1667
|
-
if (!h) return {};
|
|
1668
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1669
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1670
|
-
const headers = {};
|
|
1671
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1672
|
-
return headers;
|
|
1673
|
-
};
|
|
1674
1524
|
return customFetch(getCreateSessionUrl(), {
|
|
1675
1525
|
...options,
|
|
1676
1526
|
method: "POST",
|
|
1677
|
-
headers: {
|
|
1678
|
-
"Content-Type": "application/json",
|
|
1679
|
-
...getHeaders(options?.headers)
|
|
1680
|
-
},
|
|
1527
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1681
1528
|
body: JSON.stringify(createSessionBody)
|
|
1682
1529
|
});
|
|
1683
1530
|
};
|
|
@@ -1697,21 +1544,10 @@ const getQuerySessionsUrl = (params) => {
|
|
|
1697
1544
|
* @summary Query sessions
|
|
1698
1545
|
*/
|
|
1699
1546
|
const querySessions = async (querySessionsBody, params, options) => {
|
|
1700
|
-
const getHeaders = (h) => {
|
|
1701
|
-
if (!h) return {};
|
|
1702
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1703
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1704
|
-
const headers = {};
|
|
1705
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1706
|
-
return headers;
|
|
1707
|
-
};
|
|
1708
1547
|
return customFetch(getQuerySessionsUrl(params), {
|
|
1709
1548
|
...options,
|
|
1710
1549
|
method: "POST",
|
|
1711
|
-
headers: {
|
|
1712
|
-
"Content-Type": "application/json",
|
|
1713
|
-
...getHeaders(options?.headers)
|
|
1714
|
-
},
|
|
1550
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1715
1551
|
body: JSON.stringify(querySessionsBody)
|
|
1716
1552
|
});
|
|
1717
1553
|
};
|
|
@@ -1758,21 +1594,10 @@ const getExchangeHandoffUrl = (params) => {
|
|
|
1758
1594
|
* @summary Exchange a handoff token for a session
|
|
1759
1595
|
*/
|
|
1760
1596
|
const exchangeHandoff = async (exchangeHandoffBody, params, options) => {
|
|
1761
|
-
const getHeaders = (h) => {
|
|
1762
|
-
if (!h) return {};
|
|
1763
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1764
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1765
|
-
const headers = {};
|
|
1766
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1767
|
-
return headers;
|
|
1768
|
-
};
|
|
1769
1597
|
return customFetch(getExchangeHandoffUrl(params), {
|
|
1770
1598
|
...options,
|
|
1771
1599
|
method: "POST",
|
|
1772
|
-
headers: {
|
|
1773
|
-
"Content-Type": "application/json",
|
|
1774
|
-
...getHeaders(options?.headers)
|
|
1775
|
-
},
|
|
1600
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1776
1601
|
body: JSON.stringify(exchangeHandoffBody)
|
|
1777
1602
|
});
|
|
1778
1603
|
};
|
|
@@ -1924,21 +1749,10 @@ const getPublishSchemaUrl = (params) => {
|
|
|
1924
1749
|
* @summary Publish a schema
|
|
1925
1750
|
*/
|
|
1926
1751
|
const publishSchema = async (publishSchemaBody, params, options) => {
|
|
1927
|
-
const getHeaders = (h) => {
|
|
1928
|
-
if (!h) return {};
|
|
1929
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
1930
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
1931
|
-
const headers = {};
|
|
1932
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
1933
|
-
return headers;
|
|
1934
|
-
};
|
|
1935
1752
|
return customFetch(getPublishSchemaUrl(params), {
|
|
1936
1753
|
...options,
|
|
1937
1754
|
method: "POST",
|
|
1938
|
-
headers: {
|
|
1939
|
-
"Content-Type": "application/json",
|
|
1940
|
-
...getHeaders(options?.headers)
|
|
1941
|
-
},
|
|
1755
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
1942
1756
|
body: JSON.stringify(publishSchemaBody)
|
|
1943
1757
|
});
|
|
1944
1758
|
};
|
|
@@ -2019,21 +1833,10 @@ const getPublishFlowDefinitionUrl = () => {
|
|
|
2019
1833
|
* @summary Publish a flow definition
|
|
2020
1834
|
*/
|
|
2021
1835
|
const publishFlowDefinition = async (publishFlowDefinitionBody, options) => {
|
|
2022
|
-
const getHeaders = (h) => {
|
|
2023
|
-
if (!h) return {};
|
|
2024
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2025
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2026
|
-
const headers = {};
|
|
2027
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2028
|
-
return headers;
|
|
2029
|
-
};
|
|
2030
1836
|
return customFetch(getPublishFlowDefinitionUrl(), {
|
|
2031
1837
|
...options,
|
|
2032
1838
|
method: "POST",
|
|
2033
|
-
headers: {
|
|
2034
|
-
"Content-Type": "application/json",
|
|
2035
|
-
...getHeaders(options?.headers)
|
|
2036
|
-
},
|
|
1839
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2037
1840
|
body: JSON.stringify(publishFlowDefinitionBody)
|
|
2038
1841
|
});
|
|
2039
1842
|
};
|
|
@@ -2097,21 +1900,10 @@ const getCreateTeamUrl = (params) => {
|
|
|
2097
1900
|
* @summary Create a team
|
|
2098
1901
|
*/
|
|
2099
1902
|
const createTeam = async (createTeamBody, params, options) => {
|
|
2100
|
-
const getHeaders = (h) => {
|
|
2101
|
-
if (!h) return {};
|
|
2102
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2103
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2104
|
-
const headers = {};
|
|
2105
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2106
|
-
return headers;
|
|
2107
|
-
};
|
|
2108
1903
|
return customFetch(getCreateTeamUrl(params), {
|
|
2109
1904
|
...options,
|
|
2110
1905
|
method: "POST",
|
|
2111
|
-
headers: {
|
|
2112
|
-
"Content-Type": "application/json",
|
|
2113
|
-
...getHeaders(options?.headers)
|
|
2114
|
-
},
|
|
1906
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2115
1907
|
body: JSON.stringify(createTeamBody)
|
|
2116
1908
|
});
|
|
2117
1909
|
};
|
|
@@ -2132,21 +1924,10 @@ const getQueryTeamsUrl = (params) => {
|
|
|
2132
1924
|
* @summary Query teams
|
|
2133
1925
|
*/
|
|
2134
1926
|
const queryTeams = async (queryTeamsBody, params, options) => {
|
|
2135
|
-
const getHeaders = (h) => {
|
|
2136
|
-
if (!h) return {};
|
|
2137
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2138
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2139
|
-
const headers = {};
|
|
2140
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2141
|
-
return headers;
|
|
2142
|
-
};
|
|
2143
1927
|
return customFetch(getQueryTeamsUrl(params), {
|
|
2144
1928
|
...options,
|
|
2145
1929
|
method: "POST",
|
|
2146
|
-
headers: {
|
|
2147
|
-
"Content-Type": "application/json",
|
|
2148
|
-
...getHeaders(options?.headers)
|
|
2149
|
-
},
|
|
1930
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2150
1931
|
body: JSON.stringify(queryTeamsBody)
|
|
2151
1932
|
});
|
|
2152
1933
|
};
|
|
@@ -2202,21 +1983,10 @@ const getUpdateTeamUrl = (teamId) => {
|
|
|
2202
1983
|
* @summary Update a team
|
|
2203
1984
|
*/
|
|
2204
1985
|
const updateTeam = async (teamId, updateTeamBody, options) => {
|
|
2205
|
-
const getHeaders = (h) => {
|
|
2206
|
-
if (!h) return {};
|
|
2207
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2208
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2209
|
-
const headers = {};
|
|
2210
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2211
|
-
return headers;
|
|
2212
|
-
};
|
|
2213
1986
|
return customFetch(getUpdateTeamUrl(teamId), {
|
|
2214
1987
|
...options,
|
|
2215
1988
|
method: "PATCH",
|
|
2216
|
-
headers: {
|
|
2217
|
-
"Content-Type": "application/json",
|
|
2218
|
-
...getHeaders(options?.headers)
|
|
2219
|
-
},
|
|
1989
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2220
1990
|
body: JSON.stringify(updateTeamBody)
|
|
2221
1991
|
});
|
|
2222
1992
|
};
|
|
@@ -2277,21 +2047,10 @@ const getSearchUrl = (params) => {
|
|
|
2277
2047
|
* @summary Search projects
|
|
2278
2048
|
*/
|
|
2279
2049
|
const search = async (searchBody, params, options) => {
|
|
2280
|
-
const getHeaders = (h) => {
|
|
2281
|
-
if (!h) return {};
|
|
2282
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2283
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2284
|
-
const headers = {};
|
|
2285
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2286
|
-
return headers;
|
|
2287
|
-
};
|
|
2288
2050
|
return customFetch(getSearchUrl(params), {
|
|
2289
2051
|
...options,
|
|
2290
2052
|
method: "POST",
|
|
2291
|
-
headers: {
|
|
2292
|
-
"Content-Type": "application/json",
|
|
2293
|
-
...getHeaders(options?.headers)
|
|
2294
|
-
},
|
|
2053
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2295
2054
|
body: JSON.stringify(searchBody)
|
|
2296
2055
|
});
|
|
2297
2056
|
};
|
|
@@ -2319,21 +2078,10 @@ const getPublishBrandingUrl = (params) => {
|
|
|
2319
2078
|
* @summary Publish a branding revision
|
|
2320
2079
|
*/
|
|
2321
2080
|
const publishBranding = async (publishBrandingBody, params, options) => {
|
|
2322
|
-
const getHeaders = (h) => {
|
|
2323
|
-
if (!h) return {};
|
|
2324
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2325
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2326
|
-
const headers = {};
|
|
2327
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2328
|
-
return headers;
|
|
2329
|
-
};
|
|
2330
2081
|
return customFetch(getPublishBrandingUrl(params), {
|
|
2331
2082
|
...options,
|
|
2332
2083
|
method: "POST",
|
|
2333
|
-
headers: {
|
|
2334
|
-
"Content-Type": "application/json",
|
|
2335
|
-
...getHeaders(options?.headers)
|
|
2336
|
-
},
|
|
2084
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2337
2085
|
body: JSON.stringify(publishBrandingBody)
|
|
2338
2086
|
});
|
|
2339
2087
|
};
|
|
@@ -2442,21 +2190,10 @@ const getPublishIdpUrl = (params) => {
|
|
|
2442
2190
|
* @summary Create or revise an identity provider
|
|
2443
2191
|
*/
|
|
2444
2192
|
const publishIdp = async (publishIdpBody, params, options) => {
|
|
2445
|
-
const getHeaders = (h) => {
|
|
2446
|
-
if (!h) return {};
|
|
2447
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2448
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2449
|
-
const headers = {};
|
|
2450
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2451
|
-
return headers;
|
|
2452
|
-
};
|
|
2453
2193
|
return customFetch(getPublishIdpUrl(params), {
|
|
2454
2194
|
...options,
|
|
2455
2195
|
method: "POST",
|
|
2456
|
-
headers: {
|
|
2457
|
-
"Content-Type": "application/json",
|
|
2458
|
-
...getHeaders(options?.headers)
|
|
2459
|
-
},
|
|
2196
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2460
2197
|
body: JSON.stringify(publishIdpBody)
|
|
2461
2198
|
});
|
|
2462
2199
|
};
|
|
@@ -2475,21 +2212,10 @@ const getQueryIdpsUrl = (params) => {
|
|
|
2475
2212
|
* @summary Query identity providers
|
|
2476
2213
|
*/
|
|
2477
2214
|
const queryIdps = async (queryIdpsBody, params, options) => {
|
|
2478
|
-
const getHeaders = (h) => {
|
|
2479
|
-
if (!h) return {};
|
|
2480
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2481
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2482
|
-
const headers = {};
|
|
2483
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2484
|
-
return headers;
|
|
2485
|
-
};
|
|
2486
2215
|
return customFetch(getQueryIdpsUrl(params), {
|
|
2487
2216
|
...options,
|
|
2488
2217
|
method: "POST",
|
|
2489
|
-
headers: {
|
|
2490
|
-
"Content-Type": "application/json",
|
|
2491
|
-
...getHeaders(options?.headers)
|
|
2492
|
-
},
|
|
2218
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2493
2219
|
body: JSON.stringify(queryIdpsBody)
|
|
2494
2220
|
});
|
|
2495
2221
|
};
|
|
@@ -2602,21 +2328,10 @@ const getPublishApplicationUrl = (params) => {
|
|
|
2602
2328
|
* @summary Create or revise a registered application
|
|
2603
2329
|
*/
|
|
2604
2330
|
const publishApplication = async (publishApplicationBody, params, options) => {
|
|
2605
|
-
const getHeaders = (h) => {
|
|
2606
|
-
if (!h) return {};
|
|
2607
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2608
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2609
|
-
const headers = {};
|
|
2610
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2611
|
-
return headers;
|
|
2612
|
-
};
|
|
2613
2331
|
return customFetch(getPublishApplicationUrl(params), {
|
|
2614
2332
|
...options,
|
|
2615
2333
|
method: "POST",
|
|
2616
|
-
headers: {
|
|
2617
|
-
"Content-Type": "application/json",
|
|
2618
|
-
...getHeaders(options?.headers)
|
|
2619
|
-
},
|
|
2334
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2620
2335
|
body: JSON.stringify(publishApplicationBody)
|
|
2621
2336
|
});
|
|
2622
2337
|
};
|
|
@@ -2707,21 +2422,10 @@ const getPublishPolicyUrl = (params) => {
|
|
|
2707
2422
|
* @summary Publish a policy
|
|
2708
2423
|
*/
|
|
2709
2424
|
const publishPolicy = async (publishPolicyBody, params, options) => {
|
|
2710
|
-
const getHeaders = (h) => {
|
|
2711
|
-
if (!h) return {};
|
|
2712
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2713
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2714
|
-
const headers = {};
|
|
2715
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2716
|
-
return headers;
|
|
2717
|
-
};
|
|
2718
2425
|
return customFetch(getPublishPolicyUrl(params), {
|
|
2719
2426
|
...options,
|
|
2720
2427
|
method: "POST",
|
|
2721
|
-
headers: {
|
|
2722
|
-
"Content-Type": "application/json",
|
|
2723
|
-
...getHeaders(options?.headers)
|
|
2724
|
-
},
|
|
2428
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2725
2429
|
body: JSON.stringify(publishPolicyBody)
|
|
2726
2430
|
});
|
|
2727
2431
|
};
|
|
@@ -2761,21 +2465,10 @@ const getEvaluatePolicyUrl = (params) => {
|
|
|
2761
2465
|
* @summary Evaluate a policy
|
|
2762
2466
|
*/
|
|
2763
2467
|
const evaluatePolicy = async (evaluatePolicyBody, params, options) => {
|
|
2764
|
-
const getHeaders = (h) => {
|
|
2765
|
-
if (!h) return {};
|
|
2766
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2767
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2768
|
-
const headers = {};
|
|
2769
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2770
|
-
return headers;
|
|
2771
|
-
};
|
|
2772
2468
|
return customFetch(getEvaluatePolicyUrl(params), {
|
|
2773
2469
|
...options,
|
|
2774
2470
|
method: "POST",
|
|
2775
|
-
headers: {
|
|
2776
|
-
"Content-Type": "application/json",
|
|
2777
|
-
...getHeaders(options?.headers)
|
|
2778
|
-
},
|
|
2471
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2779
2472
|
body: JSON.stringify(evaluatePolicyBody)
|
|
2780
2473
|
});
|
|
2781
2474
|
};
|
|
@@ -2893,21 +2586,10 @@ const getCreateReleaseUrl = (params) => {
|
|
|
2893
2586
|
* @summary Create a release
|
|
2894
2587
|
*/
|
|
2895
2588
|
const createRelease = async (createReleaseBody, params, options) => {
|
|
2896
|
-
const getHeaders = (h) => {
|
|
2897
|
-
if (!h) return {};
|
|
2898
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2899
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2900
|
-
const headers = {};
|
|
2901
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
2902
|
-
return headers;
|
|
2903
|
-
};
|
|
2904
2589
|
return customFetch(getCreateReleaseUrl(params), {
|
|
2905
2590
|
...options,
|
|
2906
2591
|
method: "POST",
|
|
2907
|
-
headers: {
|
|
2908
|
-
"Content-Type": "application/json",
|
|
2909
|
-
...getHeaders(options?.headers)
|
|
2910
|
-
},
|
|
2592
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
2911
2593
|
body: JSON.stringify(createReleaseBody)
|
|
2912
2594
|
});
|
|
2913
2595
|
};
|
|
@@ -2992,21 +2674,10 @@ const getBuildReleaseUrl = (params) => {
|
|
|
2992
2674
|
* @summary Build a release from files
|
|
2993
2675
|
*/
|
|
2994
2676
|
const buildRelease = async (buildReleaseBody, params, options) => {
|
|
2995
|
-
const getHeaders = (h) => {
|
|
2996
|
-
if (!h) return {};
|
|
2997
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
2998
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
2999
|
-
const headers = {};
|
|
3000
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3001
|
-
return headers;
|
|
3002
|
-
};
|
|
3003
2677
|
return customFetch(getBuildReleaseUrl(params), {
|
|
3004
2678
|
...options,
|
|
3005
2679
|
method: "POST",
|
|
3006
|
-
headers: {
|
|
3007
|
-
"Content-Type": "application/json",
|
|
3008
|
-
...getHeaders(options?.headers)
|
|
3009
|
-
},
|
|
2680
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3010
2681
|
body: JSON.stringify(buildReleaseBody)
|
|
3011
2682
|
});
|
|
3012
2683
|
};
|
|
@@ -3121,21 +2792,10 @@ const getCreateGrantUrl = (params) => {
|
|
|
3121
2792
|
* @summary Create a grant
|
|
3122
2793
|
*/
|
|
3123
2794
|
const createGrant = async (createGrantBody, params, options) => {
|
|
3124
|
-
const getHeaders = (h) => {
|
|
3125
|
-
if (!h) return {};
|
|
3126
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3127
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3128
|
-
const headers = {};
|
|
3129
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3130
|
-
return headers;
|
|
3131
|
-
};
|
|
3132
2795
|
return customFetch(getCreateGrantUrl(params), {
|
|
3133
2796
|
...options,
|
|
3134
2797
|
method: "POST",
|
|
3135
|
-
headers: {
|
|
3136
|
-
"Content-Type": "application/json",
|
|
3137
|
-
...getHeaders(options?.headers)
|
|
3138
|
-
},
|
|
2798
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3139
2799
|
body: JSON.stringify(createGrantBody)
|
|
3140
2800
|
});
|
|
3141
2801
|
};
|
|
@@ -3156,30 +2816,20 @@ const getQueryGrantsUrl = (params) => {
|
|
|
3156
2816
|
* Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
|
|
3157
2817
|
* not returned. Requires `project.read`.
|
|
3158
2818
|
*
|
|
3159
|
-
* `expand: ["principal"]` adds envelope fields on `user` and `team`.
|
|
3160
|
-
*
|
|
3161
|
-
*
|
|
2819
|
+
* `expand: ["principal"]` adds envelope fields on `user` and `team`. Expanding
|
|
2820
|
+
* requires read access to the principal's home project (the platform project
|
|
2821
|
+
* when the server has one), for project secrets and for console sessions alike.
|
|
2822
|
+
* A caller without it gets `403` `user.permission_denied`.
|
|
3162
2823
|
*
|
|
3163
2824
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
3164
2825
|
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
3165
2826
|
* @summary Query grants
|
|
3166
2827
|
*/
|
|
3167
2828
|
const queryGrants = async (queryGrantsBody, params, options) => {
|
|
3168
|
-
const getHeaders = (h) => {
|
|
3169
|
-
if (!h) return {};
|
|
3170
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3171
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3172
|
-
const headers = {};
|
|
3173
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3174
|
-
return headers;
|
|
3175
|
-
};
|
|
3176
2829
|
return customFetch(getQueryGrantsUrl(params), {
|
|
3177
2830
|
...options,
|
|
3178
2831
|
method: "POST",
|
|
3179
|
-
headers: {
|
|
3180
|
-
"Content-Type": "application/json",
|
|
3181
|
-
...getHeaders(options?.headers)
|
|
3182
|
-
},
|
|
2832
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3183
2833
|
body: JSON.stringify(queryGrantsBody)
|
|
3184
2834
|
});
|
|
3185
2835
|
};
|
|
@@ -3207,10 +2857,10 @@ const getGetGrantUrl = (grantId, params) => {
|
|
|
3207
2857
|
* Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
|
|
3208
2858
|
* (`relation=team`) rows and grants of another project all return `404`.
|
|
3209
2859
|
*
|
|
3210
|
-
* `expand=principal` adds envelope fields on `user` or `team`.
|
|
3211
|
-
*
|
|
3212
|
-
*
|
|
3213
|
-
* without
|
|
2860
|
+
* `expand=principal` adds envelope fields on `user` or `team`. Expanding
|
|
2861
|
+
* requires read access to the principal's home project (the platform project
|
|
2862
|
+
* when the server has one), for project secrets and for console sessions alike.
|
|
2863
|
+
* A caller without it gets `403` `user.permission_denied`.
|
|
3214
2864
|
*
|
|
3215
2865
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
3216
2866
|
* (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
|
|
@@ -3262,15 +2912,15 @@ const getCreateInvitationUrl = (params) => {
|
|
|
3262
2912
|
* Send `type` and the object named after it. `project_member` takes
|
|
3263
2913
|
* `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
|
|
3264
2914
|
* and `role`, and answers `501` `not_implemented` until team invitations
|
|
3265
|
-
* ship. Optional `metadata.name` labels who the link is
|
|
3266
|
-
* `replaces_invitation_id` replaces that invitation: the new
|
|
3267
|
-
* original's `journey_id`, and the original is deleted in the
|
|
3268
|
-
* transaction unless it was accepted.
|
|
2915
|
+
* ship. Optional `metadata.name` (1–200 characters) labels who the link is
|
|
2916
|
+
* for. Optional `replaces_invitation_id` replaces that invitation: the new
|
|
2917
|
+
* row keeps the original's `journey_id`, and the original is deleted in the
|
|
2918
|
+
* same transaction unless it was accepted.
|
|
3269
2919
|
*
|
|
3270
2920
|
* The `link` appears only in this response. Share it out of band; whoever
|
|
3271
2921
|
* opens it and is signed in can redeem the role. It expires in 72 hours.
|
|
3272
2922
|
* Refused for an unclaimed project, on a server without a platform project,
|
|
3273
|
-
* and when the project
|
|
2923
|
+
* and when the project already has 100 pending unexpired invitations.
|
|
3274
2924
|
*
|
|
3275
2925
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
3276
2926
|
* (`sessionCookie`). Creation needs the same project `admin` check as
|
|
@@ -3279,27 +2929,22 @@ const getCreateInvitationUrl = (params) => {
|
|
|
3279
2929
|
* @summary Create an invitation
|
|
3280
2930
|
*/
|
|
3281
2931
|
const createInvitation = async (createInvitationBody, params, options) => {
|
|
3282
|
-
const getHeaders = (h) => {
|
|
3283
|
-
if (!h) return {};
|
|
3284
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3285
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3286
|
-
const headers = {};
|
|
3287
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3288
|
-
return headers;
|
|
3289
|
-
};
|
|
3290
2932
|
return customFetch(getCreateInvitationUrl(params), {
|
|
3291
2933
|
...options,
|
|
3292
2934
|
method: "POST",
|
|
3293
|
-
headers: {
|
|
3294
|
-
"Content-Type": "application/json",
|
|
3295
|
-
...getHeaders(options?.headers)
|
|
3296
|
-
},
|
|
2935
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3297
2936
|
body: JSON.stringify(createInvitationBody)
|
|
3298
2937
|
});
|
|
3299
2938
|
};
|
|
3300
2939
|
const getListInvitationsUrl = (params) => {
|
|
3301
2940
|
const normalizedParams = new URLSearchParams();
|
|
3302
2941
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2942
|
+
if (Array.isArray(value) && ["status", "expand"].includes(key)) {
|
|
2943
|
+
value.forEach((v) => {
|
|
2944
|
+
normalizedParams.append(key, v === null ? "null" : String(v));
|
|
2945
|
+
});
|
|
2946
|
+
return;
|
|
2947
|
+
}
|
|
3303
2948
|
if (value !== void 0) normalizedParams.append(key, value === null ? "null" : String(value));
|
|
3304
2949
|
});
|
|
3305
2950
|
const stringifiedParams = normalizedParams.toString();
|
|
@@ -3309,8 +2954,11 @@ const getListInvitationsUrl = (params) => {
|
|
|
3309
2954
|
* Lists a project's invitations, newest first, in any status, paginated with
|
|
3310
2955
|
* `limit` and `page_token`.
|
|
3311
2956
|
*
|
|
3312
|
-
* Optional `status` and `type` filters narrow the page. `
|
|
3313
|
-
*
|
|
2957
|
+
* Optional `status` and `type` filters narrow the page. Repeat `status` to
|
|
2958
|
+
* match any of several statuses, for example
|
|
2959
|
+
* `status=pending&status=expired&status=rejected`. `expired` is derived on
|
|
2960
|
+
* read from `expires_at`. `expand=inviter` adds `inviter` to each
|
|
2961
|
+
* invitation. Authenticate with a project secret (`oauth2`) or
|
|
3314
2962
|
* a console session cookie (`sessionCookie`). Listing needs the same project
|
|
3315
2963
|
* `admin` check as `createGrant` (`POST /grants`).
|
|
3316
2964
|
* @summary List invitations
|
|
@@ -3332,25 +2980,14 @@ const getLookupInvitationUrl = () => {
|
|
|
3332
2980
|
* or finished token answers the same opaque `404`. Authenticate with a
|
|
3333
2981
|
* platform-project user session cookie (`sessionCookie`). Lookup is a read:
|
|
3334
2982
|
* same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
|
|
3335
|
-
* reject still do).
|
|
2983
|
+
* reject still do).
|
|
3336
2984
|
* @summary Look up an invitation by token
|
|
3337
2985
|
*/
|
|
3338
2986
|
const lookupInvitation = async (lookupInvitationBody, options) => {
|
|
3339
|
-
const getHeaders = (h) => {
|
|
3340
|
-
if (!h) return {};
|
|
3341
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3342
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3343
|
-
const headers = {};
|
|
3344
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3345
|
-
return headers;
|
|
3346
|
-
};
|
|
3347
2987
|
return customFetch(getLookupInvitationUrl(), {
|
|
3348
2988
|
...options,
|
|
3349
2989
|
method: "POST",
|
|
3350
|
-
headers: {
|
|
3351
|
-
"Content-Type": "application/json",
|
|
3352
|
-
...getHeaders(options?.headers)
|
|
3353
|
-
},
|
|
2990
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3354
2991
|
body: JSON.stringify(lookupInvitationBody)
|
|
3355
2992
|
});
|
|
3356
2993
|
};
|
|
@@ -3369,25 +3006,14 @@ const getAcceptInvitationUrl = () => {
|
|
|
3369
3006
|
* answers the same opaque `404`.
|
|
3370
3007
|
*
|
|
3371
3008
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
3372
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
3009
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
3373
3010
|
* @summary Accept an invitation
|
|
3374
3011
|
*/
|
|
3375
3012
|
const acceptInvitation = async (acceptInvitationBody, options) => {
|
|
3376
|
-
const getHeaders = (h) => {
|
|
3377
|
-
if (!h) return {};
|
|
3378
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3379
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3380
|
-
const headers = {};
|
|
3381
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3382
|
-
return headers;
|
|
3383
|
-
};
|
|
3384
3013
|
return customFetch(getAcceptInvitationUrl(), {
|
|
3385
3014
|
...options,
|
|
3386
3015
|
method: "POST",
|
|
3387
|
-
headers: {
|
|
3388
|
-
"Content-Type": "application/json",
|
|
3389
|
-
...getHeaders(options?.headers)
|
|
3390
|
-
},
|
|
3016
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3391
3017
|
body: JSON.stringify(acceptInvitationBody)
|
|
3392
3018
|
});
|
|
3393
3019
|
};
|
|
@@ -3398,28 +3024,20 @@ const getRejectInvitationUrl = () => {
|
|
|
3398
3024
|
* Declines a pending invitation for the signed-in user and returns the
|
|
3399
3025
|
* updated invitation with status `rejected`.
|
|
3400
3026
|
*
|
|
3401
|
-
* Send the plaintext token from the invitation link fragment.
|
|
3402
|
-
*
|
|
3027
|
+
* Send the plaintext token from the invitation link fragment. The
|
|
3028
|
+
* invitation keeps its metadata for administrators, but this response
|
|
3029
|
+
* returns `metadata` as null. The inviter cannot decline their own invitation; an administrator
|
|
3030
|
+
* cancels it instead. Every unknown or finished token answers the same
|
|
3031
|
+
* opaque `404`.
|
|
3403
3032
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
3404
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
3033
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
3405
3034
|
* @summary Decline an invitation
|
|
3406
3035
|
*/
|
|
3407
3036
|
const rejectInvitation = async (rejectInvitationBody, options) => {
|
|
3408
|
-
const getHeaders = (h) => {
|
|
3409
|
-
if (!h) return {};
|
|
3410
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3411
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3412
|
-
const headers = {};
|
|
3413
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3414
|
-
return headers;
|
|
3415
|
-
};
|
|
3416
3037
|
return customFetch(getRejectInvitationUrl(), {
|
|
3417
3038
|
...options,
|
|
3418
3039
|
method: "POST",
|
|
3419
|
-
headers: {
|
|
3420
|
-
"Content-Type": "application/json",
|
|
3421
|
-
...getHeaders(options?.headers)
|
|
3422
|
-
},
|
|
3040
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3423
3041
|
body: JSON.stringify(rejectInvitationBody)
|
|
3424
3042
|
});
|
|
3425
3043
|
};
|
|
@@ -3455,10 +3073,9 @@ const getCancelInvitationUrl = (invitationId, params) => {
|
|
|
3455
3073
|
return stringifiedParams.length > 0 ? `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}?${stringifiedParams}` : `${getApiBaseUrl()}/invitations/${encodeURIComponent(String(invitationId))}`;
|
|
3456
3074
|
};
|
|
3457
3075
|
/**
|
|
3458
|
-
* Deletes a pending
|
|
3459
|
-
*
|
|
3460
|
-
* same opaque `404` as a miss.
|
|
3461
|
-
* later cleanup job removes them.
|
|
3076
|
+
* Deletes a pending, expired or rejected invitation, with its metadata. A
|
|
3077
|
+
* pending invitation's link can no longer be redeemed. An accepted
|
|
3078
|
+
* invitation answers the same opaque `404` as a miss.
|
|
3462
3079
|
*
|
|
3463
3080
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
3464
3081
|
* (`sessionCookie`). Cancelling needs the same project `admin` check as
|
|
@@ -3606,21 +3223,10 @@ const getSetVariablesUrl = (params) => {
|
|
|
3606
3223
|
* @summary Update a project's variables
|
|
3607
3224
|
*/
|
|
3608
3225
|
const setVariables = async (setVariablesBody, params, options) => {
|
|
3609
|
-
const getHeaders = (h) => {
|
|
3610
|
-
if (!h) return {};
|
|
3611
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3612
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3613
|
-
const headers = {};
|
|
3614
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3615
|
-
return headers;
|
|
3616
|
-
};
|
|
3617
3226
|
return customFetch(getSetVariablesUrl(params), {
|
|
3618
3227
|
...options,
|
|
3619
3228
|
method: "PATCH",
|
|
3620
|
-
headers: {
|
|
3621
|
-
"Content-Type": "application/json",
|
|
3622
|
-
...getHeaders(options?.headers)
|
|
3623
|
-
},
|
|
3229
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3624
3230
|
body: JSON.stringify(setVariablesBody)
|
|
3625
3231
|
});
|
|
3626
3232
|
};
|
|
@@ -3737,21 +3343,10 @@ const getCreateDeploymentUrl = (params) => {
|
|
|
3737
3343
|
* @summary Create a deployment
|
|
3738
3344
|
*/
|
|
3739
3345
|
const createDeployment = async (createDeploymentBody, params, options) => {
|
|
3740
|
-
const getHeaders = (h) => {
|
|
3741
|
-
if (!h) return {};
|
|
3742
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3743
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3744
|
-
const headers = {};
|
|
3745
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3746
|
-
return headers;
|
|
3747
|
-
};
|
|
3748
3346
|
return customFetch(getCreateDeploymentUrl(params), {
|
|
3749
3347
|
...options,
|
|
3750
3348
|
method: "POST",
|
|
3751
|
-
headers: {
|
|
3752
|
-
"Content-Type": "application/json",
|
|
3753
|
-
...getHeaders(options?.headers)
|
|
3754
|
-
},
|
|
3349
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3755
3350
|
body: JSON.stringify(createDeploymentBody)
|
|
3756
3351
|
});
|
|
3757
3352
|
};
|
|
@@ -3881,21 +3476,10 @@ const getRollbackDeploymentUrl = (deploymentId, params) => {
|
|
|
3881
3476
|
* @summary Roll back to a deployment
|
|
3882
3477
|
*/
|
|
3883
3478
|
const rollbackDeployment = async (deploymentId, params, rollbackDeploymentBody, options) => {
|
|
3884
|
-
const getHeaders = (h) => {
|
|
3885
|
-
if (!h) return {};
|
|
3886
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3887
|
-
if (Symbol.iterator in h) return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
3888
|
-
const headers = {};
|
|
3889
|
-
for (const [name, value] of Object.entries(h)) if (value !== void 0) headers[name] = value;
|
|
3890
|
-
return headers;
|
|
3891
|
-
};
|
|
3892
3479
|
return customFetch(getRollbackDeploymentUrl(deploymentId, params), {
|
|
3893
3480
|
...options,
|
|
3894
3481
|
method: "POST",
|
|
3895
|
-
headers: {
|
|
3896
|
-
"Content-Type": "application/json",
|
|
3897
|
-
...getHeaders(options?.headers)
|
|
3898
|
-
},
|
|
3482
|
+
headers: getHeaders({ "Content-Type": "application/json" }, options?.headers),
|
|
3899
3483
|
body: JSON.stringify(rollbackDeploymentBody)
|
|
3900
3484
|
});
|
|
3901
3485
|
};
|
|
@@ -3921,6 +3505,6 @@ const listDeploymentVariables = async (deploymentId, params, options) => {
|
|
|
3921
3505
|
method: "GET"
|
|
3922
3506
|
});
|
|
3923
3507
|
};
|
|
3924
|
-
export { getDeleteVariableUrl as $,
|
|
3508
|
+
export { getDeleteVariableUrl as $, getUpdateUserUrl as $n, updateUser as $r, getListPolicyRevisionsUrl as $t, getAuthAttempt as A, getQueryProjectsUrl as An, publishIdp as Ar, getGetReleaseUrl as At, getCreateFlowUrl as B, getRevokeReleaseUrl as Bn, removeProjectOrigin as Br, getInvitation as Bt, deleteUser as C, getPublishBrandingUrl as Cn, listUserPasskeys as Cr, getGetOAuthSettingsUrl as Ct, getAcceptInvitationUrl as D, getPublishSchemaUrl as Dn, publishApplication as Dr, getGetProjectClaimWindowUrl as Dt, exchangeHandoff as E, getPublishPolicyUrl as En, lookupInvitation as Er, getGetProjectClaimStatusUrl as Et, getCompleteUserPasskeyRegistrationUrl as F, getRejectInvitationUrl as Fn, queryProjects as Fr, getGetUserUrl as Ft, getCreateReleaseUrl as G, getSession as Gn, rollbackDeployment as Gr, getListFlowDefinitionsUrl as Gt, getCreateInvitationUrl as H, getRollbackDeploymentUrl as Hn, revokeMySession as Hr, getListDeploymentVariablesUrl as Ht, getCreateAuthAttemptChallengeUrl as I, getRelease as In, querySessions as Ir, getGetVariableUrl as It, getCreateUserPasskeyRegistrationUrl as J, getSubmitFlowStepUrl as Jn, setVariables as Jr, getListMyIdentityLinksUrl as Jt, getCreateSessionUrl as K, getSetUserPasswordUrl as Kn, search as Kr, getListIdpRevisionsUrl as Kt, getCreateAuthAttemptHandoffUrl as L, getRemoveProjectOriginUrl as Ln, queryTeams as Lr, getGrant as Lt, getBuildReleaseUrl as M, getQueryTeamsUrl as Mn, publishSchema as Mr, getGetSessionUrl as Mt, getCancelInvitationUrl as N, getQueryUsersUrl as Nn, queryGrants as Nr, getGetTeamUrl as Nt, getAddProjectOriginUrl as O, getQueryGrantsUrl as On, publishBranding as Or, getGetProjectUrl as Ot, getCompleteProjectClaimUrl as P, getReady as Pn, queryIdps as Pr, getGetUserPasswordStateUrl as Pt, getDeleteUserUrl as Q, getUpdateTeamUrl as Qn, updateTeam as Qr, getListPoliciesUrl as Qt, getCreateAuthAttemptUrl as R, getRemoveProjectPreviewUrl as Rn, queryUsers as Rr, getIdp as Rt, deleteGrant as S, getPublishApplicationUrl as Sn, listUserIdentityLinks as Sr, getGetMyUserUrl as St, evaluatePolicy as T, getPublishIdpUrl as Tn, listVariables as Tr, getGetPolicyUrl as Tt, getCreateProjectClaimUrl as U, getSchema as Un, revokeRelease as Ur, getListDeploymentsUrl as Ut, getCreateGrantUrl as V, getRevokeSessionUrl as Vn, removeProjectPreview as Vr, getListBrandingUrl as Vt, getCreateProjectUrl as W, getSearchUrl as Wn, revokeSession as Wr, getListEventsUrl as Wt, getDeactivateTeamUrl as X, getUpdateMyUserUrl as Xn, updateMyUser as Xr, getListMyProjectsUrl as Xt, getCreateUserUrl as Y, getTeam as Yn, submitFlowStep as Yr, getListMyPasskeysUrl as Yt, getDeleteGrantUrl as Z, getUpdateProjectUrl as Zn, updateProject as Zr, getListMyTeamsUrl as Zt, createSession as _, getPolicy as _n, listProjectAdmins as _r, getGetLiveUrl as _t, completeProjectClaim as a, getListUserIdentityLinksUrl as an, listDeploymentVariables as ar, getFlowStep as at, createUserPasskeyRegistration as b, getProjectClaimStatus as bn, listReleases as br, getGetMySessionUrl as bt, createAuthAttemptChallenge as c, getListVariablesUrl as cn, listFlowDefinitions as cr, getGetBrandingUrl as ct, createFlow as d, getMyPasswordState as dn, listMyIdentityLinks as dr, getGetFlowDefinitionUrl as dt, verifyAuthAttemptChallenge as ei, getListProjectAdminsUrl as en, getUser as er, getDeployment as et, createGrant as f, getMySession as fn, listMyPasskeys as fr, getGetFlowStepUrl as ft, createRelease as g, getOAuthSettings as gn, listPolicyRevisions as gr, getGetInvitationUrl as gt, createProjectClaim as h, getMyUserSchema as hn, listPolicies as hr, getGetIdpUrl as ht, cancelInvitation as i, getListSchemasUrl as in, listBranding as ir, getFlowDefinition as it, getBranding as j, getQuerySessionsUrl as jn, publishPolicy as jr, getGetSchemaUrl as jt, getApplication as k, getQueryIdpsUrl as kn, publishFlowDefinition as kr, getGetReadyUrl as kt, createAuthAttemptHandoff as l, getLive as ln, listIdpRevisions as lr, getGetDeploymentUrl as lt, createProject as m, getMyUser as mn, listMyTeams as mr, getGetIdpRevisionUrl as mt, addProjectOrigin as n, getListProjectPreviewsUrl as nn, getVariable as nr, getEvent as nt, completeUserPasskeyRegistration as o, getListUserPasskeysUrl as on, listDeployments as or, getGetApplicationUrl as ot, createInvitation as p, getMySessionCsrfToken as pn, listMyProjects as pr, getGetGrantUrl as pt, getCreateTeamUrl as q, getSetVariablesUrl as qn, setUserPassword as qr, getListInvitationsUrl as qt, buildRelease as r, getListReleasesUrl as rn, getVerifyAuthAttemptChallengeUrl as rr, getExchangeHandoffUrl as rt, createAuthAttempt as s, getListUserTeamsUrl as sn, listEvents as sr, getGetAuthAttemptUrl as st, acceptInvitation as t, zitadelNextGen_exports as ti, getListProjectMembersUrl as tn, getUserPasswordState as tr, getEvaluatePolicyUrl as tt, createDeployment as u, getLookupInvitationUrl as un, listInvitations as ur, getGetEventUrl as ut, createTeam as v, getPolicyRevision as vn, listProjectMembers as vr, getGetMyPasswordStateUrl as vt, deleteVariable as w, getPublishFlowDefinitionUrl as wn, listUserTeams as wr, getGetPolicyRevisionUrl as wt, deactivateTeam as x, getProjectClaimWindow as xn, listSchemas as xr, getGetMyUserSchemaUrl as xt, createUser as y, getProject as yn, listProjectPreviews as yr, getGetMySessionCsrfTokenUrl as yt, getCreateDeploymentUrl as z, getRevokeMySessionUrl as zn, rejectInvitation as zr, getIdpRevision as zt };
|
|
3925
3509
|
|
|
3926
|
-
//# sourceMappingURL=zitadelNextGen-
|
|
3510
|
+
//# sourceMappingURL=zitadelNextGen-CVFzR-dx.mjs.map
|