@zyphr-dev/node-sdk 0.1.31 → 0.1.33
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/index.cjs +2204 -157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2214 -145
- package/dist/index.d.ts +2214 -145
- package/dist/index.js +2066 -157
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +28 -0
- package/src/client.ts +5 -0
- package/src/src/apis/AuthOrganizationsApi.ts +823 -0
- package/src/src/apis/AuthUserProfileApi.ts +62 -0
- package/src/src/apis/DomainsApi.ts +248 -0
- package/src/src/apis/MuseApi.ts +531 -0
- package/src/src/apis/index.ts +2 -0
- package/src/src/models/AddOrganizationMemberRequest.ts +74 -0
- package/src/src/models/CreateOrganizationRequest.ts +82 -0
- package/src/src/models/DeleteDomainResponse.ts +90 -0
- package/src/src/models/DeleteDomainResponseData.ts +75 -0
- package/src/src/models/DomainResponse.ts +47 -1
- package/src/src/models/GetDomain200Response.ts +88 -0
- package/src/src/models/GetDomain200ResponseMeta.ts +65 -0
- package/src/src/models/LoginRequest.ts +12 -0
- package/src/src/models/Organization.ts +137 -0
- package/src/src/models/OrganizationListResponse.ts +90 -0
- package/src/src/models/OrganizationListResponseMeta.ts +73 -0
- package/src/src/models/OrganizationMembersListResponse.ts +90 -0
- package/src/src/models/OrganizationMembership.ts +119 -0
- package/src/src/models/OrganizationMembershipResponse.ts +90 -0
- package/src/src/models/OrganizationMembershipWithUser.ts +135 -0
- package/src/src/models/OrganizationResponse.ts +90 -0
- package/src/src/models/RegisterRequest.ts +23 -0
- package/src/src/models/SwitchOrganizationRequest.ts +75 -0
- package/src/src/models/SwitchOrganizationResponse.ts +90 -0
- package/src/src/models/SwitchOrganizationResponseData.ts +99 -0
- package/src/src/models/SwitchOrganizationResponseDataTokens.ts +103 -0
- package/src/src/models/SwitchOrganizationResponseDataUser.ts +73 -0
- package/src/src/models/UpdateOrganizationMemberRoleRequest.ts +66 -0
- package/src/src/models/UpdateOrganizationRequest.ts +81 -0
- package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +105 -0
- package/src/src/models/VerificationStatusResponse.ts +90 -0
- package/src/src/models/VerificationStatusResponseData.ts +148 -0
- package/src/src/models/VerifyDomainResponse.ts +90 -0
- package/src/src/models/VerifyDomainResponseData.ts +103 -0
- package/src/src/models/index.ts +26 -0
package/dist/index.js
CHANGED
|
@@ -345,6 +345,20 @@ var DomainResponseStatusEnum = {
|
|
|
345
345
|
VERIFIED: "verified",
|
|
346
346
|
FAILED: "failed"
|
|
347
347
|
};
|
|
348
|
+
var DomainResponseSesIdentityStatusEnum = {
|
|
349
|
+
PENDING: "pending",
|
|
350
|
+
SUCCESS: "success",
|
|
351
|
+
FAILED: "failed",
|
|
352
|
+
TEMPORARY_FAILURE: "temporary_failure",
|
|
353
|
+
NOT_STARTED: "not_started"
|
|
354
|
+
};
|
|
355
|
+
var DomainResponseSesDkimStatusEnum = {
|
|
356
|
+
PENDING: "pending",
|
|
357
|
+
SUCCESS: "success",
|
|
358
|
+
FAILED: "failed",
|
|
359
|
+
TEMPORARY_FAILURE: "temporary_failure",
|
|
360
|
+
NOT_STARTED: "not_started"
|
|
361
|
+
};
|
|
348
362
|
function instanceOfDomainResponse(value) {
|
|
349
363
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
350
364
|
if (!("domain" in value) || value["domain"] === void 0) return false;
|
|
@@ -370,6 +384,8 @@ function DomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
370
384
|
"recordsVerified": json["records_verified"],
|
|
371
385
|
"recordsTotal": json["records_total"],
|
|
372
386
|
"verificationToken": json["verification_token"] == null ? void 0 : json["verification_token"],
|
|
387
|
+
"sesIdentityStatus": json["ses_identity_status"] == null ? void 0 : json["ses_identity_status"],
|
|
388
|
+
"sesDkimStatus": json["ses_dkim_status"] == null ? void 0 : json["ses_dkim_status"],
|
|
373
389
|
"verifiedAt": json["verified_at"] == null ? void 0 : new Date(json["verified_at"]),
|
|
374
390
|
"lastCheckedAt": json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
|
|
375
391
|
"createdAt": new Date(json["created_at"]),
|
|
@@ -391,6 +407,8 @@ function DomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
391
407
|
"records_verified": value["recordsVerified"],
|
|
392
408
|
"records_total": value["recordsTotal"],
|
|
393
409
|
"verification_token": value["verificationToken"],
|
|
410
|
+
"ses_identity_status": value["sesIdentityStatus"],
|
|
411
|
+
"ses_dkim_status": value["sesDkimStatus"],
|
|
394
412
|
"verified_at": value["verifiedAt"] == null ? void 0 : value["verifiedAt"].toISOString(),
|
|
395
413
|
"last_checked_at": value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
|
|
396
414
|
"created_at": value["createdAt"].toISOString(),
|
|
@@ -484,6 +502,36 @@ function AddDomainRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
484
502
|
};
|
|
485
503
|
}
|
|
486
504
|
|
|
505
|
+
// src/src/models/AddOrganizationMemberRequest.ts
|
|
506
|
+
function instanceOfAddOrganizationMemberRequest(value) {
|
|
507
|
+
if (!("userId" in value) || value["userId"] === void 0) return false;
|
|
508
|
+
return true;
|
|
509
|
+
}
|
|
510
|
+
function AddOrganizationMemberRequestFromJSON(json) {
|
|
511
|
+
return AddOrganizationMemberRequestFromJSONTyped(json, false);
|
|
512
|
+
}
|
|
513
|
+
function AddOrganizationMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
514
|
+
if (json == null) {
|
|
515
|
+
return json;
|
|
516
|
+
}
|
|
517
|
+
return {
|
|
518
|
+
"userId": json["user_id"],
|
|
519
|
+
"role": json["role"] == null ? void 0 : json["role"]
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
function AddOrganizationMemberRequestToJSON(json) {
|
|
523
|
+
return AddOrganizationMemberRequestToJSONTyped(json, false);
|
|
524
|
+
}
|
|
525
|
+
function AddOrganizationMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
526
|
+
if (value == null) {
|
|
527
|
+
return value;
|
|
528
|
+
}
|
|
529
|
+
return {
|
|
530
|
+
"user_id": value["userId"],
|
|
531
|
+
"role": value["role"]
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
|
|
487
535
|
// src/src/models/AddTopicSubscribersRequest.ts
|
|
488
536
|
function instanceOfAddTopicSubscribersRequest(value) {
|
|
489
537
|
if (!("subscriberIds" in value) || value["subscriberIds"] === void 0) return false;
|
|
@@ -2466,6 +2514,38 @@ function CreateCategoryRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2466
2514
|
};
|
|
2467
2515
|
}
|
|
2468
2516
|
|
|
2517
|
+
// src/src/models/CreateOrganizationRequest.ts
|
|
2518
|
+
function instanceOfCreateOrganizationRequest(value) {
|
|
2519
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
2520
|
+
return true;
|
|
2521
|
+
}
|
|
2522
|
+
function CreateOrganizationRequestFromJSON(json) {
|
|
2523
|
+
return CreateOrganizationRequestFromJSONTyped(json, false);
|
|
2524
|
+
}
|
|
2525
|
+
function CreateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
2526
|
+
if (json == null) {
|
|
2527
|
+
return json;
|
|
2528
|
+
}
|
|
2529
|
+
return {
|
|
2530
|
+
"name": json["name"],
|
|
2531
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
2532
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
function CreateOrganizationRequestToJSON(json) {
|
|
2536
|
+
return CreateOrganizationRequestToJSONTyped(json, false);
|
|
2537
|
+
}
|
|
2538
|
+
function CreateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2539
|
+
if (value == null) {
|
|
2540
|
+
return value;
|
|
2541
|
+
}
|
|
2542
|
+
return {
|
|
2543
|
+
"name": value["name"],
|
|
2544
|
+
"slug": value["slug"],
|
|
2545
|
+
"metadata": value["metadata"]
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2469
2549
|
// src/src/models/CreateSubscriberRequest.ts
|
|
2470
2550
|
function instanceOfCreateSubscriberRequest(value) {
|
|
2471
2551
|
if (!("externalId" in value) || value["externalId"] === void 0) return false;
|
|
@@ -2945,6 +3025,95 @@ function CreateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2945
3025
|
};
|
|
2946
3026
|
}
|
|
2947
3027
|
|
|
3028
|
+
// src/src/models/GetDomain200ResponseMeta.ts
|
|
3029
|
+
function instanceOfGetDomain200ResponseMeta(value) {
|
|
3030
|
+
return true;
|
|
3031
|
+
}
|
|
3032
|
+
function GetDomain200ResponseMetaFromJSON(json) {
|
|
3033
|
+
return GetDomain200ResponseMetaFromJSONTyped(json, false);
|
|
3034
|
+
}
|
|
3035
|
+
function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
3036
|
+
if (json == null) {
|
|
3037
|
+
return json;
|
|
3038
|
+
}
|
|
3039
|
+
return {
|
|
3040
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"]
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
3043
|
+
function GetDomain200ResponseMetaToJSON(json) {
|
|
3044
|
+
return GetDomain200ResponseMetaToJSONTyped(json, false);
|
|
3045
|
+
}
|
|
3046
|
+
function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3047
|
+
if (value == null) {
|
|
3048
|
+
return value;
|
|
3049
|
+
}
|
|
3050
|
+
return {
|
|
3051
|
+
"request_id": value["requestId"]
|
|
3052
|
+
};
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
// src/src/models/DeleteDomainResponseData.ts
|
|
3056
|
+
function instanceOfDeleteDomainResponseData(value) {
|
|
3057
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3058
|
+
if (!("deleted" in value) || value["deleted"] === void 0) return false;
|
|
3059
|
+
return true;
|
|
3060
|
+
}
|
|
3061
|
+
function DeleteDomainResponseDataFromJSON(json) {
|
|
3062
|
+
return DeleteDomainResponseDataFromJSONTyped(json, false);
|
|
3063
|
+
}
|
|
3064
|
+
function DeleteDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
3065
|
+
if (json == null) {
|
|
3066
|
+
return json;
|
|
3067
|
+
}
|
|
3068
|
+
return {
|
|
3069
|
+
"id": json["id"],
|
|
3070
|
+
"deleted": json["deleted"]
|
|
3071
|
+
};
|
|
3072
|
+
}
|
|
3073
|
+
function DeleteDomainResponseDataToJSON(json) {
|
|
3074
|
+
return DeleteDomainResponseDataToJSONTyped(json, false);
|
|
3075
|
+
}
|
|
3076
|
+
function DeleteDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3077
|
+
if (value == null) {
|
|
3078
|
+
return value;
|
|
3079
|
+
}
|
|
3080
|
+
return {
|
|
3081
|
+
"id": value["id"],
|
|
3082
|
+
"deleted": value["deleted"]
|
|
3083
|
+
};
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
// src/src/models/DeleteDomainResponse.ts
|
|
3087
|
+
function instanceOfDeleteDomainResponse(value) {
|
|
3088
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
3089
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
3090
|
+
return true;
|
|
3091
|
+
}
|
|
3092
|
+
function DeleteDomainResponseFromJSON(json) {
|
|
3093
|
+
return DeleteDomainResponseFromJSONTyped(json, false);
|
|
3094
|
+
}
|
|
3095
|
+
function DeleteDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3096
|
+
if (json == null) {
|
|
3097
|
+
return json;
|
|
3098
|
+
}
|
|
3099
|
+
return {
|
|
3100
|
+
"data": DeleteDomainResponseDataFromJSON(json["data"]),
|
|
3101
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
3102
|
+
};
|
|
3103
|
+
}
|
|
3104
|
+
function DeleteDomainResponseToJSON(json) {
|
|
3105
|
+
return DeleteDomainResponseToJSONTyped(json, false);
|
|
3106
|
+
}
|
|
3107
|
+
function DeleteDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3108
|
+
if (value == null) {
|
|
3109
|
+
return value;
|
|
3110
|
+
}
|
|
3111
|
+
return {
|
|
3112
|
+
"data": DeleteDomainResponseDataToJSON(value["data"]),
|
|
3113
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
3114
|
+
};
|
|
3115
|
+
}
|
|
3116
|
+
|
|
2948
3117
|
// src/src/models/DeleteResultData.ts
|
|
2949
3118
|
function instanceOfDeleteResultData(value) {
|
|
2950
3119
|
return true;
|
|
@@ -4304,6 +4473,35 @@ function GenerateWaaSPortalToken201ResponseToJSONTyped(value, ignoreDiscriminato
|
|
|
4304
4473
|
};
|
|
4305
4474
|
}
|
|
4306
4475
|
|
|
4476
|
+
// src/src/models/GetDomain200Response.ts
|
|
4477
|
+
function instanceOfGetDomain200Response(value) {
|
|
4478
|
+
return true;
|
|
4479
|
+
}
|
|
4480
|
+
function GetDomain200ResponseFromJSON(json) {
|
|
4481
|
+
return GetDomain200ResponseFromJSONTyped(json, false);
|
|
4482
|
+
}
|
|
4483
|
+
function GetDomain200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4484
|
+
if (json == null) {
|
|
4485
|
+
return json;
|
|
4486
|
+
}
|
|
4487
|
+
return {
|
|
4488
|
+
"data": json["data"] == null ? void 0 : DomainResponseFromJSON(json["data"]),
|
|
4489
|
+
"meta": json["meta"] == null ? void 0 : GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
4490
|
+
};
|
|
4491
|
+
}
|
|
4492
|
+
function GetDomain200ResponseToJSON(json) {
|
|
4493
|
+
return GetDomain200ResponseToJSONTyped(json, false);
|
|
4494
|
+
}
|
|
4495
|
+
function GetDomain200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4496
|
+
if (value == null) {
|
|
4497
|
+
return value;
|
|
4498
|
+
}
|
|
4499
|
+
return {
|
|
4500
|
+
"data": DomainResponseToJSON(value["data"]),
|
|
4501
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
4502
|
+
};
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4307
4505
|
// src/src/models/WaaSEndpoint.ts
|
|
4308
4506
|
var WaaSEndpointStatusEnum = {
|
|
4309
4507
|
ACTIVE: "active",
|
|
@@ -4778,7 +4976,8 @@ function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4778
4976
|
return {
|
|
4779
4977
|
"email": json["email"],
|
|
4780
4978
|
"password": json["password"],
|
|
4781
|
-
"customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"]
|
|
4979
|
+
"customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"],
|
|
4980
|
+
"organizationId": json["organization_id"] == null ? void 0 : json["organization_id"]
|
|
4782
4981
|
};
|
|
4783
4982
|
}
|
|
4784
4983
|
function LoginRequestToJSON(json) {
|
|
@@ -4791,7 +4990,8 @@ function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4791
4990
|
return {
|
|
4792
4991
|
"email": value["email"],
|
|
4793
4992
|
"password": value["password"],
|
|
4794
|
-
"custom_claims": value["customClaims"]
|
|
4993
|
+
"custom_claims": value["customClaims"],
|
|
4994
|
+
"organization_id": value["organizationId"]
|
|
4795
4995
|
};
|
|
4796
4996
|
}
|
|
4797
4997
|
|
|
@@ -6162,196 +6362,494 @@ function OAuthTokensResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6162
6362
|
};
|
|
6163
6363
|
}
|
|
6164
6364
|
|
|
6165
|
-
// src/src/models/
|
|
6166
|
-
function
|
|
6365
|
+
// src/src/models/Organization.ts
|
|
6366
|
+
function instanceOfOrganization(value) {
|
|
6367
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
6368
|
+
if (!("applicationId" in value) || value["applicationId"] === void 0) return false;
|
|
6369
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
|
|
6370
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
6371
|
+
if (!("metadata" in value) || value["metadata"] === void 0) return false;
|
|
6372
|
+
if (!("isDefault" in value) || value["isDefault"] === void 0) return false;
|
|
6373
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
6374
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
|
|
6167
6375
|
return true;
|
|
6168
6376
|
}
|
|
6169
|
-
function
|
|
6170
|
-
return
|
|
6377
|
+
function OrganizationFromJSON(json) {
|
|
6378
|
+
return OrganizationFromJSONTyped(json, false);
|
|
6171
6379
|
}
|
|
6172
|
-
function
|
|
6380
|
+
function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
6173
6381
|
if (json == null) {
|
|
6174
6382
|
return json;
|
|
6175
6383
|
}
|
|
6176
6384
|
return {
|
|
6177
|
-
"
|
|
6178
|
-
"
|
|
6179
|
-
"
|
|
6180
|
-
"
|
|
6181
|
-
"
|
|
6182
|
-
"
|
|
6385
|
+
"id": json["id"],
|
|
6386
|
+
"applicationId": json["application_id"],
|
|
6387
|
+
"environmentId": json["environment_id"],
|
|
6388
|
+
"name": json["name"],
|
|
6389
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
6390
|
+
"metadata": json["metadata"],
|
|
6391
|
+
"isDefault": json["is_default"],
|
|
6392
|
+
"createdAt": new Date(json["created_at"]),
|
|
6393
|
+
"updatedAt": new Date(json["updated_at"])
|
|
6183
6394
|
};
|
|
6184
6395
|
}
|
|
6185
|
-
function
|
|
6186
|
-
return
|
|
6396
|
+
function OrganizationToJSON(json) {
|
|
6397
|
+
return OrganizationToJSONTyped(json, false);
|
|
6187
6398
|
}
|
|
6188
|
-
function
|
|
6399
|
+
function OrganizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6189
6400
|
if (value == null) {
|
|
6190
6401
|
return value;
|
|
6191
6402
|
}
|
|
6192
6403
|
return {
|
|
6193
|
-
"
|
|
6194
|
-
"
|
|
6195
|
-
"
|
|
6196
|
-
"
|
|
6197
|
-
"
|
|
6198
|
-
"
|
|
6404
|
+
"id": value["id"],
|
|
6405
|
+
"application_id": value["applicationId"],
|
|
6406
|
+
"environment_id": value["environmentId"],
|
|
6407
|
+
"name": value["name"],
|
|
6408
|
+
"slug": value["slug"],
|
|
6409
|
+
"metadata": value["metadata"],
|
|
6410
|
+
"is_default": value["isDefault"],
|
|
6411
|
+
"created_at": value["createdAt"].toISOString(),
|
|
6412
|
+
"updated_at": value["updatedAt"].toISOString()
|
|
6199
6413
|
};
|
|
6200
6414
|
}
|
|
6201
6415
|
|
|
6202
|
-
// src/src/models/
|
|
6203
|
-
function
|
|
6416
|
+
// src/src/models/OrganizationListResponseMeta.ts
|
|
6417
|
+
function instanceOfOrganizationListResponseMeta(value) {
|
|
6204
6418
|
return true;
|
|
6205
6419
|
}
|
|
6206
|
-
function
|
|
6207
|
-
return
|
|
6420
|
+
function OrganizationListResponseMetaFromJSON(json) {
|
|
6421
|
+
return OrganizationListResponseMetaFromJSONTyped(json, false);
|
|
6208
6422
|
}
|
|
6209
|
-
function
|
|
6423
|
+
function OrganizationListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
6210
6424
|
if (json == null) {
|
|
6211
6425
|
return json;
|
|
6212
6426
|
}
|
|
6213
6427
|
return {
|
|
6214
|
-
"
|
|
6428
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
6429
|
+
"nextCursor": json["next_cursor"] == null ? void 0 : json["next_cursor"]
|
|
6215
6430
|
};
|
|
6216
6431
|
}
|
|
6217
|
-
function
|
|
6218
|
-
return
|
|
6432
|
+
function OrganizationListResponseMetaToJSON(json) {
|
|
6433
|
+
return OrganizationListResponseMetaToJSONTyped(json, false);
|
|
6219
6434
|
}
|
|
6220
|
-
function
|
|
6435
|
+
function OrganizationListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6221
6436
|
if (value == null) {
|
|
6222
6437
|
return value;
|
|
6223
6438
|
}
|
|
6224
6439
|
return {
|
|
6225
|
-
"
|
|
6440
|
+
"request_id": value["requestId"],
|
|
6441
|
+
"next_cursor": value["nextCursor"]
|
|
6226
6442
|
};
|
|
6227
6443
|
}
|
|
6228
6444
|
|
|
6229
|
-
// src/src/models/
|
|
6230
|
-
function
|
|
6445
|
+
// src/src/models/OrganizationListResponse.ts
|
|
6446
|
+
function instanceOfOrganizationListResponse(value) {
|
|
6447
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
6448
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
6231
6449
|
return true;
|
|
6232
6450
|
}
|
|
6233
|
-
function
|
|
6234
|
-
return
|
|
6451
|
+
function OrganizationListResponseFromJSON(json) {
|
|
6452
|
+
return OrganizationListResponseFromJSONTyped(json, false);
|
|
6235
6453
|
}
|
|
6236
|
-
function
|
|
6454
|
+
function OrganizationListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6237
6455
|
if (json == null) {
|
|
6238
6456
|
return json;
|
|
6239
6457
|
}
|
|
6240
6458
|
return {
|
|
6241
|
-
"data": json["data"]
|
|
6242
|
-
"meta":
|
|
6459
|
+
"data": json["data"].map(OrganizationFromJSON),
|
|
6460
|
+
"meta": OrganizationListResponseMetaFromJSON(json["meta"])
|
|
6243
6461
|
};
|
|
6244
6462
|
}
|
|
6245
|
-
function
|
|
6246
|
-
return
|
|
6463
|
+
function OrganizationListResponseToJSON(json) {
|
|
6464
|
+
return OrganizationListResponseToJSONTyped(json, false);
|
|
6247
6465
|
}
|
|
6248
|
-
function
|
|
6466
|
+
function OrganizationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6249
6467
|
if (value == null) {
|
|
6250
6468
|
return value;
|
|
6251
6469
|
}
|
|
6252
6470
|
return {
|
|
6253
|
-
"data":
|
|
6254
|
-
"meta":
|
|
6471
|
+
"data": value["data"].map(OrganizationToJSON),
|
|
6472
|
+
"meta": OrganizationListResponseMetaToJSON(value["meta"])
|
|
6255
6473
|
};
|
|
6256
6474
|
}
|
|
6257
6475
|
|
|
6258
|
-
// src/src/models/
|
|
6259
|
-
function
|
|
6476
|
+
// src/src/models/OrganizationMembershipWithUser.ts
|
|
6477
|
+
function instanceOfOrganizationMembershipWithUser(value) {
|
|
6478
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
6479
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
6480
|
+
if (!("endUserId" in value) || value["endUserId"] === void 0) return false;
|
|
6481
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
|
|
6482
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
6483
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
|
|
6260
6484
|
return true;
|
|
6261
6485
|
}
|
|
6262
|
-
function
|
|
6263
|
-
return
|
|
6486
|
+
function OrganizationMembershipWithUserFromJSON(json) {
|
|
6487
|
+
return OrganizationMembershipWithUserFromJSONTyped(json, false);
|
|
6264
6488
|
}
|
|
6265
|
-
function
|
|
6489
|
+
function OrganizationMembershipWithUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
6266
6490
|
if (json == null) {
|
|
6267
6491
|
return json;
|
|
6268
6492
|
}
|
|
6269
6493
|
return {
|
|
6270
|
-
"
|
|
6271
|
-
"
|
|
6494
|
+
"id": json["id"],
|
|
6495
|
+
"organizationId": json["organization_id"],
|
|
6496
|
+
"endUserId": json["end_user_id"],
|
|
6497
|
+
"environmentId": json["environment_id"],
|
|
6498
|
+
"role": json["role"] == null ? void 0 : json["role"],
|
|
6499
|
+
"createdAt": new Date(json["created_at"]),
|
|
6500
|
+
"updatedAt": new Date(json["updated_at"]),
|
|
6501
|
+
"email": json["email"] == null ? void 0 : json["email"],
|
|
6502
|
+
"name": json["name"] == null ? void 0 : json["name"]
|
|
6272
6503
|
};
|
|
6273
6504
|
}
|
|
6274
|
-
function
|
|
6275
|
-
return
|
|
6505
|
+
function OrganizationMembershipWithUserToJSON(json) {
|
|
6506
|
+
return OrganizationMembershipWithUserToJSONTyped(json, false);
|
|
6276
6507
|
}
|
|
6277
|
-
function
|
|
6508
|
+
function OrganizationMembershipWithUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6278
6509
|
if (value == null) {
|
|
6279
6510
|
return value;
|
|
6280
6511
|
}
|
|
6281
6512
|
return {
|
|
6282
|
-
"
|
|
6283
|
-
"
|
|
6513
|
+
"id": value["id"],
|
|
6514
|
+
"organization_id": value["organizationId"],
|
|
6515
|
+
"end_user_id": value["endUserId"],
|
|
6516
|
+
"environment_id": value["environmentId"],
|
|
6517
|
+
"role": value["role"],
|
|
6518
|
+
"created_at": value["createdAt"].toISOString(),
|
|
6519
|
+
"updated_at": value["updatedAt"].toISOString(),
|
|
6520
|
+
"email": value["email"],
|
|
6521
|
+
"name": value["name"]
|
|
6284
6522
|
};
|
|
6285
6523
|
}
|
|
6286
6524
|
|
|
6287
|
-
// src/src/models/
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
function instanceOfPayloadTooLargeErrorError(value) {
|
|
6292
|
-
if (!("code" in value) || value["code"] === void 0) return false;
|
|
6293
|
-
if (!("message" in value) || value["message"] === void 0) return false;
|
|
6525
|
+
// src/src/models/OrganizationMembersListResponse.ts
|
|
6526
|
+
function instanceOfOrganizationMembersListResponse(value) {
|
|
6527
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
6528
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
6294
6529
|
return true;
|
|
6295
6530
|
}
|
|
6296
|
-
function
|
|
6297
|
-
return
|
|
6531
|
+
function OrganizationMembersListResponseFromJSON(json) {
|
|
6532
|
+
return OrganizationMembersListResponseFromJSONTyped(json, false);
|
|
6298
6533
|
}
|
|
6299
|
-
function
|
|
6534
|
+
function OrganizationMembersListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6300
6535
|
if (json == null) {
|
|
6301
6536
|
return json;
|
|
6302
6537
|
}
|
|
6303
6538
|
return {
|
|
6304
|
-
"
|
|
6305
|
-
"
|
|
6306
|
-
"details": json["details"] == null ? void 0 : PayloadTooLargeErrorErrorDetailsFromJSON(json["details"])
|
|
6539
|
+
"data": json["data"].map(OrganizationMembershipWithUserFromJSON),
|
|
6540
|
+
"meta": OrganizationListResponseMetaFromJSON(json["meta"])
|
|
6307
6541
|
};
|
|
6308
6542
|
}
|
|
6309
|
-
function
|
|
6310
|
-
return
|
|
6543
|
+
function OrganizationMembersListResponseToJSON(json) {
|
|
6544
|
+
return OrganizationMembersListResponseToJSONTyped(json, false);
|
|
6311
6545
|
}
|
|
6312
|
-
function
|
|
6546
|
+
function OrganizationMembersListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6313
6547
|
if (value == null) {
|
|
6314
6548
|
return value;
|
|
6315
6549
|
}
|
|
6316
6550
|
return {
|
|
6317
|
-
"
|
|
6318
|
-
"
|
|
6319
|
-
"details": PayloadTooLargeErrorErrorDetailsToJSON(value["details"])
|
|
6551
|
+
"data": value["data"].map(OrganizationMembershipWithUserToJSON),
|
|
6552
|
+
"meta": OrganizationListResponseMetaToJSON(value["meta"])
|
|
6320
6553
|
};
|
|
6321
6554
|
}
|
|
6322
6555
|
|
|
6323
|
-
// src/src/models/
|
|
6324
|
-
function
|
|
6325
|
-
if (!("
|
|
6556
|
+
// src/src/models/OrganizationMembership.ts
|
|
6557
|
+
function instanceOfOrganizationMembership(value) {
|
|
6558
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
6559
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
6560
|
+
if (!("endUserId" in value) || value["endUserId"] === void 0) return false;
|
|
6561
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0) return false;
|
|
6562
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
6563
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
|
|
6326
6564
|
return true;
|
|
6327
6565
|
}
|
|
6328
|
-
function
|
|
6329
|
-
return
|
|
6566
|
+
function OrganizationMembershipFromJSON(json) {
|
|
6567
|
+
return OrganizationMembershipFromJSONTyped(json, false);
|
|
6330
6568
|
}
|
|
6331
|
-
function
|
|
6569
|
+
function OrganizationMembershipFromJSONTyped(json, ignoreDiscriminator) {
|
|
6332
6570
|
if (json == null) {
|
|
6333
6571
|
return json;
|
|
6334
6572
|
}
|
|
6335
6573
|
return {
|
|
6336
|
-
"
|
|
6337
|
-
"
|
|
6574
|
+
"id": json["id"],
|
|
6575
|
+
"organizationId": json["organization_id"],
|
|
6576
|
+
"endUserId": json["end_user_id"],
|
|
6577
|
+
"environmentId": json["environment_id"],
|
|
6578
|
+
"role": json["role"] == null ? void 0 : json["role"],
|
|
6579
|
+
"createdAt": new Date(json["created_at"]),
|
|
6580
|
+
"updatedAt": new Date(json["updated_at"])
|
|
6338
6581
|
};
|
|
6339
6582
|
}
|
|
6340
|
-
function
|
|
6341
|
-
return
|
|
6583
|
+
function OrganizationMembershipToJSON(json) {
|
|
6584
|
+
return OrganizationMembershipToJSONTyped(json, false);
|
|
6342
6585
|
}
|
|
6343
|
-
function
|
|
6586
|
+
function OrganizationMembershipToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6344
6587
|
if (value == null) {
|
|
6345
6588
|
return value;
|
|
6346
6589
|
}
|
|
6347
6590
|
return {
|
|
6348
|
-
"
|
|
6349
|
-
"
|
|
6591
|
+
"id": value["id"],
|
|
6592
|
+
"organization_id": value["organizationId"],
|
|
6593
|
+
"end_user_id": value["endUserId"],
|
|
6594
|
+
"environment_id": value["environmentId"],
|
|
6595
|
+
"role": value["role"],
|
|
6596
|
+
"created_at": value["createdAt"].toISOString(),
|
|
6597
|
+
"updated_at": value["updatedAt"].toISOString()
|
|
6350
6598
|
};
|
|
6351
6599
|
}
|
|
6352
6600
|
|
|
6353
|
-
// src/src/models/
|
|
6354
|
-
function
|
|
6601
|
+
// src/src/models/OrganizationMembershipResponse.ts
|
|
6602
|
+
function instanceOfOrganizationMembershipResponse(value) {
|
|
6603
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
6604
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
6605
|
+
return true;
|
|
6606
|
+
}
|
|
6607
|
+
function OrganizationMembershipResponseFromJSON(json) {
|
|
6608
|
+
return OrganizationMembershipResponseFromJSONTyped(json, false);
|
|
6609
|
+
}
|
|
6610
|
+
function OrganizationMembershipResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6611
|
+
if (json == null) {
|
|
6612
|
+
return json;
|
|
6613
|
+
}
|
|
6614
|
+
return {
|
|
6615
|
+
"data": OrganizationMembershipFromJSON(json["data"]),
|
|
6616
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
6617
|
+
};
|
|
6618
|
+
}
|
|
6619
|
+
function OrganizationMembershipResponseToJSON(json) {
|
|
6620
|
+
return OrganizationMembershipResponseToJSONTyped(json, false);
|
|
6621
|
+
}
|
|
6622
|
+
function OrganizationMembershipResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6623
|
+
if (value == null) {
|
|
6624
|
+
return value;
|
|
6625
|
+
}
|
|
6626
|
+
return {
|
|
6627
|
+
"data": OrganizationMembershipToJSON(value["data"]),
|
|
6628
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
6629
|
+
};
|
|
6630
|
+
}
|
|
6631
|
+
|
|
6632
|
+
// src/src/models/OrganizationResponse.ts
|
|
6633
|
+
function instanceOfOrganizationResponse(value) {
|
|
6634
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
6635
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
6636
|
+
return true;
|
|
6637
|
+
}
|
|
6638
|
+
function OrganizationResponseFromJSON(json) {
|
|
6639
|
+
return OrganizationResponseFromJSONTyped(json, false);
|
|
6640
|
+
}
|
|
6641
|
+
function OrganizationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6642
|
+
if (json == null) {
|
|
6643
|
+
return json;
|
|
6644
|
+
}
|
|
6645
|
+
return {
|
|
6646
|
+
"data": OrganizationFromJSON(json["data"]),
|
|
6647
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
6648
|
+
};
|
|
6649
|
+
}
|
|
6650
|
+
function OrganizationResponseToJSON(json) {
|
|
6651
|
+
return OrganizationResponseToJSONTyped(json, false);
|
|
6652
|
+
}
|
|
6653
|
+
function OrganizationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6654
|
+
if (value == null) {
|
|
6655
|
+
return value;
|
|
6656
|
+
}
|
|
6657
|
+
return {
|
|
6658
|
+
"data": OrganizationToJSON(value["data"]),
|
|
6659
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
6660
|
+
};
|
|
6661
|
+
}
|
|
6662
|
+
|
|
6663
|
+
// src/src/models/PasswordRequirements.ts
|
|
6664
|
+
function instanceOfPasswordRequirements(value) {
|
|
6665
|
+
return true;
|
|
6666
|
+
}
|
|
6667
|
+
function PasswordRequirementsFromJSON(json) {
|
|
6668
|
+
return PasswordRequirementsFromJSONTyped(json, false);
|
|
6669
|
+
}
|
|
6670
|
+
function PasswordRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
6671
|
+
if (json == null) {
|
|
6672
|
+
return json;
|
|
6673
|
+
}
|
|
6674
|
+
return {
|
|
6675
|
+
"minLength": json["min_length"] == null ? void 0 : json["min_length"],
|
|
6676
|
+
"maxLength": json["max_length"] == null ? void 0 : json["max_length"],
|
|
6677
|
+
"requireUppercase": json["require_uppercase"] == null ? void 0 : json["require_uppercase"],
|
|
6678
|
+
"requireLowercase": json["require_lowercase"] == null ? void 0 : json["require_lowercase"],
|
|
6679
|
+
"requireNumbers": json["require_numbers"] == null ? void 0 : json["require_numbers"],
|
|
6680
|
+
"requireSpecial": json["require_special"] == null ? void 0 : json["require_special"]
|
|
6681
|
+
};
|
|
6682
|
+
}
|
|
6683
|
+
function PasswordRequirementsToJSON(json) {
|
|
6684
|
+
return PasswordRequirementsToJSONTyped(json, false);
|
|
6685
|
+
}
|
|
6686
|
+
function PasswordRequirementsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6687
|
+
if (value == null) {
|
|
6688
|
+
return value;
|
|
6689
|
+
}
|
|
6690
|
+
return {
|
|
6691
|
+
"min_length": value["minLength"],
|
|
6692
|
+
"max_length": value["maxLength"],
|
|
6693
|
+
"require_uppercase": value["requireUppercase"],
|
|
6694
|
+
"require_lowercase": value["requireLowercase"],
|
|
6695
|
+
"require_numbers": value["requireNumbers"],
|
|
6696
|
+
"require_special": value["requireSpecial"]
|
|
6697
|
+
};
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6700
|
+
// src/src/models/PasswordRequirementsResponseData.ts
|
|
6701
|
+
function instanceOfPasswordRequirementsResponseData(value) {
|
|
6702
|
+
return true;
|
|
6703
|
+
}
|
|
6704
|
+
function PasswordRequirementsResponseDataFromJSON(json) {
|
|
6705
|
+
return PasswordRequirementsResponseDataFromJSONTyped(json, false);
|
|
6706
|
+
}
|
|
6707
|
+
function PasswordRequirementsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6708
|
+
if (json == null) {
|
|
6709
|
+
return json;
|
|
6710
|
+
}
|
|
6711
|
+
return {
|
|
6712
|
+
"requirements": json["requirements"] == null ? void 0 : PasswordRequirementsFromJSON(json["requirements"])
|
|
6713
|
+
};
|
|
6714
|
+
}
|
|
6715
|
+
function PasswordRequirementsResponseDataToJSON(json) {
|
|
6716
|
+
return PasswordRequirementsResponseDataToJSONTyped(json, false);
|
|
6717
|
+
}
|
|
6718
|
+
function PasswordRequirementsResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6719
|
+
if (value == null) {
|
|
6720
|
+
return value;
|
|
6721
|
+
}
|
|
6722
|
+
return {
|
|
6723
|
+
"requirements": PasswordRequirementsToJSON(value["requirements"])
|
|
6724
|
+
};
|
|
6725
|
+
}
|
|
6726
|
+
|
|
6727
|
+
// src/src/models/PasswordRequirementsResponse.ts
|
|
6728
|
+
function instanceOfPasswordRequirementsResponse(value) {
|
|
6729
|
+
return true;
|
|
6730
|
+
}
|
|
6731
|
+
function PasswordRequirementsResponseFromJSON(json) {
|
|
6732
|
+
return PasswordRequirementsResponseFromJSONTyped(json, false);
|
|
6733
|
+
}
|
|
6734
|
+
function PasswordRequirementsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
6735
|
+
if (json == null) {
|
|
6736
|
+
return json;
|
|
6737
|
+
}
|
|
6738
|
+
return {
|
|
6739
|
+
"data": json["data"] == null ? void 0 : PasswordRequirementsResponseDataFromJSON(json["data"]),
|
|
6740
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
6741
|
+
};
|
|
6742
|
+
}
|
|
6743
|
+
function PasswordRequirementsResponseToJSON(json) {
|
|
6744
|
+
return PasswordRequirementsResponseToJSONTyped(json, false);
|
|
6745
|
+
}
|
|
6746
|
+
function PasswordRequirementsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6747
|
+
if (value == null) {
|
|
6748
|
+
return value;
|
|
6749
|
+
}
|
|
6750
|
+
return {
|
|
6751
|
+
"data": PasswordRequirementsResponseDataToJSON(value["data"]),
|
|
6752
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
6753
|
+
};
|
|
6754
|
+
}
|
|
6755
|
+
|
|
6756
|
+
// src/src/models/PayloadTooLargeErrorErrorDetails.ts
|
|
6757
|
+
function instanceOfPayloadTooLargeErrorErrorDetails(value) {
|
|
6758
|
+
return true;
|
|
6759
|
+
}
|
|
6760
|
+
function PayloadTooLargeErrorErrorDetailsFromJSON(json) {
|
|
6761
|
+
return PayloadTooLargeErrorErrorDetailsFromJSONTyped(json, false);
|
|
6762
|
+
}
|
|
6763
|
+
function PayloadTooLargeErrorErrorDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
6764
|
+
if (json == null) {
|
|
6765
|
+
return json;
|
|
6766
|
+
}
|
|
6767
|
+
return {
|
|
6768
|
+
"limitBytes": json["limit_bytes"] == null ? void 0 : json["limit_bytes"],
|
|
6769
|
+
"receivedBytes": json["received_bytes"] == null ? void 0 : json["received_bytes"]
|
|
6770
|
+
};
|
|
6771
|
+
}
|
|
6772
|
+
function PayloadTooLargeErrorErrorDetailsToJSON(json) {
|
|
6773
|
+
return PayloadTooLargeErrorErrorDetailsToJSONTyped(json, false);
|
|
6774
|
+
}
|
|
6775
|
+
function PayloadTooLargeErrorErrorDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6776
|
+
if (value == null) {
|
|
6777
|
+
return value;
|
|
6778
|
+
}
|
|
6779
|
+
return {
|
|
6780
|
+
"limit_bytes": value["limitBytes"],
|
|
6781
|
+
"received_bytes": value["receivedBytes"]
|
|
6782
|
+
};
|
|
6783
|
+
}
|
|
6784
|
+
|
|
6785
|
+
// src/src/models/PayloadTooLargeErrorError.ts
|
|
6786
|
+
var PayloadTooLargeErrorErrorCodeEnum = {
|
|
6787
|
+
PAYLOAD_TOO_LARGE: "payload_too_large"
|
|
6788
|
+
};
|
|
6789
|
+
function instanceOfPayloadTooLargeErrorError(value) {
|
|
6790
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
6791
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
6792
|
+
return true;
|
|
6793
|
+
}
|
|
6794
|
+
function PayloadTooLargeErrorErrorFromJSON(json) {
|
|
6795
|
+
return PayloadTooLargeErrorErrorFromJSONTyped(json, false);
|
|
6796
|
+
}
|
|
6797
|
+
function PayloadTooLargeErrorErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6798
|
+
if (json == null) {
|
|
6799
|
+
return json;
|
|
6800
|
+
}
|
|
6801
|
+
return {
|
|
6802
|
+
"code": json["code"],
|
|
6803
|
+
"message": json["message"],
|
|
6804
|
+
"details": json["details"] == null ? void 0 : PayloadTooLargeErrorErrorDetailsFromJSON(json["details"])
|
|
6805
|
+
};
|
|
6806
|
+
}
|
|
6807
|
+
function PayloadTooLargeErrorErrorToJSON(json) {
|
|
6808
|
+
return PayloadTooLargeErrorErrorToJSONTyped(json, false);
|
|
6809
|
+
}
|
|
6810
|
+
function PayloadTooLargeErrorErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6811
|
+
if (value == null) {
|
|
6812
|
+
return value;
|
|
6813
|
+
}
|
|
6814
|
+
return {
|
|
6815
|
+
"code": value["code"],
|
|
6816
|
+
"message": value["message"],
|
|
6817
|
+
"details": PayloadTooLargeErrorErrorDetailsToJSON(value["details"])
|
|
6818
|
+
};
|
|
6819
|
+
}
|
|
6820
|
+
|
|
6821
|
+
// src/src/models/PayloadTooLargeError.ts
|
|
6822
|
+
function instanceOfPayloadTooLargeError(value) {
|
|
6823
|
+
if (!("error" in value) || value["error"] === void 0) return false;
|
|
6824
|
+
return true;
|
|
6825
|
+
}
|
|
6826
|
+
function PayloadTooLargeErrorFromJSON(json) {
|
|
6827
|
+
return PayloadTooLargeErrorFromJSONTyped(json, false);
|
|
6828
|
+
}
|
|
6829
|
+
function PayloadTooLargeErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6830
|
+
if (json == null) {
|
|
6831
|
+
return json;
|
|
6832
|
+
}
|
|
6833
|
+
return {
|
|
6834
|
+
"error": PayloadTooLargeErrorErrorFromJSON(json["error"]),
|
|
6835
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
6836
|
+
};
|
|
6837
|
+
}
|
|
6838
|
+
function PayloadTooLargeErrorToJSON(json) {
|
|
6839
|
+
return PayloadTooLargeErrorToJSONTyped(json, false);
|
|
6840
|
+
}
|
|
6841
|
+
function PayloadTooLargeErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6842
|
+
if (value == null) {
|
|
6843
|
+
return value;
|
|
6844
|
+
}
|
|
6845
|
+
return {
|
|
6846
|
+
"error": PayloadTooLargeErrorErrorToJSON(value["error"]),
|
|
6847
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
6848
|
+
};
|
|
6849
|
+
}
|
|
6850
|
+
|
|
6851
|
+
// src/src/models/PhoneAuthAvailabilityResponseData.ts
|
|
6852
|
+
function instanceOfPhoneAuthAvailabilityResponseData(value) {
|
|
6355
6853
|
return true;
|
|
6356
6854
|
}
|
|
6357
6855
|
function PhoneAuthAvailabilityResponseDataFromJSON(json) {
|
|
@@ -7409,7 +7907,9 @@ function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7409
7907
|
"email": json["email"],
|
|
7410
7908
|
"password": json["password"],
|
|
7411
7909
|
"name": json["name"] == null ? void 0 : json["name"],
|
|
7412
|
-
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
7910
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
7911
|
+
"organizationId": json["organization_id"] == null ? void 0 : json["organization_id"],
|
|
7912
|
+
"organizationRole": json["organization_role"] == null ? void 0 : json["organization_role"]
|
|
7413
7913
|
};
|
|
7414
7914
|
}
|
|
7415
7915
|
function RegisterRequestToJSON(json) {
|
|
@@ -7423,7 +7923,9 @@ function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7423
7923
|
"email": value["email"],
|
|
7424
7924
|
"password": value["password"],
|
|
7425
7925
|
"name": value["name"],
|
|
7426
|
-
"metadata": value["metadata"]
|
|
7926
|
+
"metadata": value["metadata"],
|
|
7927
|
+
"organization_id": value["organizationId"],
|
|
7928
|
+
"organization_role": value["organizationRole"]
|
|
7427
7929
|
};
|
|
7428
7930
|
}
|
|
7429
7931
|
|
|
@@ -9910,44 +10412,209 @@ function SuccessResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
9910
10412
|
};
|
|
9911
10413
|
}
|
|
9912
10414
|
|
|
9913
|
-
// src/src/models/
|
|
9914
|
-
function
|
|
10415
|
+
// src/src/models/SwitchOrganizationRequest.ts
|
|
10416
|
+
function instanceOfSwitchOrganizationRequest(value) {
|
|
10417
|
+
if (!("refreshToken" in value) || value["refreshToken"] === void 0) return false;
|
|
10418
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
9915
10419
|
return true;
|
|
9916
10420
|
}
|
|
9917
|
-
function
|
|
9918
|
-
return
|
|
10421
|
+
function SwitchOrganizationRequestFromJSON(json) {
|
|
10422
|
+
return SwitchOrganizationRequestFromJSONTyped(json, false);
|
|
9919
10423
|
}
|
|
9920
|
-
function
|
|
10424
|
+
function SwitchOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9921
10425
|
if (json == null) {
|
|
9922
10426
|
return json;
|
|
9923
10427
|
}
|
|
9924
10428
|
return {
|
|
9925
|
-
"
|
|
9926
|
-
"
|
|
9927
|
-
"description": json["description"] == null ? void 0 : json["description"],
|
|
9928
|
-
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
9929
|
-
"html": json["html"] == null ? void 0 : json["html"],
|
|
9930
|
-
"text": json["text"] == null ? void 0 : json["text"],
|
|
9931
|
-
"variables": json["variables"] == null ? void 0 : json["variables"],
|
|
9932
|
-
"version": json["version"] == null ? void 0 : json["version"],
|
|
9933
|
-
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
9934
|
-
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
10429
|
+
"refreshToken": json["refresh_token"],
|
|
10430
|
+
"organizationId": json["organization_id"]
|
|
9935
10431
|
};
|
|
9936
10432
|
}
|
|
9937
|
-
function
|
|
9938
|
-
return
|
|
10433
|
+
function SwitchOrganizationRequestToJSON(json) {
|
|
10434
|
+
return SwitchOrganizationRequestToJSONTyped(json, false);
|
|
9939
10435
|
}
|
|
9940
|
-
function
|
|
10436
|
+
function SwitchOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9941
10437
|
if (value == null) {
|
|
9942
10438
|
return value;
|
|
9943
10439
|
}
|
|
9944
10440
|
return {
|
|
9945
|
-
"
|
|
9946
|
-
"
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
10441
|
+
"refresh_token": value["refreshToken"],
|
|
10442
|
+
"organization_id": value["organizationId"]
|
|
10443
|
+
};
|
|
10444
|
+
}
|
|
10445
|
+
|
|
10446
|
+
// src/src/models/SwitchOrganizationResponseDataUser.ts
|
|
10447
|
+
function instanceOfSwitchOrganizationResponseDataUser(value) {
|
|
10448
|
+
return true;
|
|
10449
|
+
}
|
|
10450
|
+
function SwitchOrganizationResponseDataUserFromJSON(json) {
|
|
10451
|
+
return SwitchOrganizationResponseDataUserFromJSONTyped(json, false);
|
|
10452
|
+
}
|
|
10453
|
+
function SwitchOrganizationResponseDataUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
10454
|
+
if (json == null) {
|
|
10455
|
+
return json;
|
|
10456
|
+
}
|
|
10457
|
+
return {
|
|
10458
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
10459
|
+
"email": json["email"] == null ? void 0 : json["email"]
|
|
10460
|
+
};
|
|
10461
|
+
}
|
|
10462
|
+
function SwitchOrganizationResponseDataUserToJSON(json) {
|
|
10463
|
+
return SwitchOrganizationResponseDataUserToJSONTyped(json, false);
|
|
10464
|
+
}
|
|
10465
|
+
function SwitchOrganizationResponseDataUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10466
|
+
if (value == null) {
|
|
10467
|
+
return value;
|
|
10468
|
+
}
|
|
10469
|
+
return {
|
|
10470
|
+
"id": value["id"],
|
|
10471
|
+
"email": value["email"]
|
|
10472
|
+
};
|
|
10473
|
+
}
|
|
10474
|
+
|
|
10475
|
+
// src/src/models/SwitchOrganizationResponseDataTokens.ts
|
|
10476
|
+
var SwitchOrganizationResponseDataTokensTokenTypeEnum = {
|
|
10477
|
+
BEARER: "Bearer"
|
|
10478
|
+
};
|
|
10479
|
+
function instanceOfSwitchOrganizationResponseDataTokens(value) {
|
|
10480
|
+
if (!("accessToken" in value) || value["accessToken"] === void 0) return false;
|
|
10481
|
+
if (!("refreshToken" in value) || value["refreshToken"] === void 0) return false;
|
|
10482
|
+
if (!("expiresIn" in value) || value["expiresIn"] === void 0) return false;
|
|
10483
|
+
if (!("tokenType" in value) || value["tokenType"] === void 0) return false;
|
|
10484
|
+
return true;
|
|
10485
|
+
}
|
|
10486
|
+
function SwitchOrganizationResponseDataTokensFromJSON(json) {
|
|
10487
|
+
return SwitchOrganizationResponseDataTokensFromJSONTyped(json, false);
|
|
10488
|
+
}
|
|
10489
|
+
function SwitchOrganizationResponseDataTokensFromJSONTyped(json, ignoreDiscriminator) {
|
|
10490
|
+
if (json == null) {
|
|
10491
|
+
return json;
|
|
10492
|
+
}
|
|
10493
|
+
return {
|
|
10494
|
+
"accessToken": json["access_token"],
|
|
10495
|
+
"refreshToken": json["refresh_token"],
|
|
10496
|
+
"expiresIn": json["expires_in"],
|
|
10497
|
+
"tokenType": json["token_type"]
|
|
10498
|
+
};
|
|
10499
|
+
}
|
|
10500
|
+
function SwitchOrganizationResponseDataTokensToJSON(json) {
|
|
10501
|
+
return SwitchOrganizationResponseDataTokensToJSONTyped(json, false);
|
|
10502
|
+
}
|
|
10503
|
+
function SwitchOrganizationResponseDataTokensToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10504
|
+
if (value == null) {
|
|
10505
|
+
return value;
|
|
10506
|
+
}
|
|
10507
|
+
return {
|
|
10508
|
+
"access_token": value["accessToken"],
|
|
10509
|
+
"refresh_token": value["refreshToken"],
|
|
10510
|
+
"expires_in": value["expiresIn"],
|
|
10511
|
+
"token_type": value["tokenType"]
|
|
10512
|
+
};
|
|
10513
|
+
}
|
|
10514
|
+
|
|
10515
|
+
// src/src/models/SwitchOrganizationResponseData.ts
|
|
10516
|
+
function instanceOfSwitchOrganizationResponseData(value) {
|
|
10517
|
+
if (!("tokens" in value) || value["tokens"] === void 0) return false;
|
|
10518
|
+
if (!("organizationId" in value) || value["organizationId"] === void 0) return false;
|
|
10519
|
+
if (!("user" in value) || value["user"] === void 0) return false;
|
|
10520
|
+
return true;
|
|
10521
|
+
}
|
|
10522
|
+
function SwitchOrganizationResponseDataFromJSON(json) {
|
|
10523
|
+
return SwitchOrganizationResponseDataFromJSONTyped(json, false);
|
|
10524
|
+
}
|
|
10525
|
+
function SwitchOrganizationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
10526
|
+
if (json == null) {
|
|
10527
|
+
return json;
|
|
10528
|
+
}
|
|
10529
|
+
return {
|
|
10530
|
+
"tokens": SwitchOrganizationResponseDataTokensFromJSON(json["tokens"]),
|
|
10531
|
+
"organizationId": json["organization_id"],
|
|
10532
|
+
"user": SwitchOrganizationResponseDataUserFromJSON(json["user"])
|
|
10533
|
+
};
|
|
10534
|
+
}
|
|
10535
|
+
function SwitchOrganizationResponseDataToJSON(json) {
|
|
10536
|
+
return SwitchOrganizationResponseDataToJSONTyped(json, false);
|
|
10537
|
+
}
|
|
10538
|
+
function SwitchOrganizationResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10539
|
+
if (value == null) {
|
|
10540
|
+
return value;
|
|
10541
|
+
}
|
|
10542
|
+
return {
|
|
10543
|
+
"tokens": SwitchOrganizationResponseDataTokensToJSON(value["tokens"]),
|
|
10544
|
+
"organization_id": value["organizationId"],
|
|
10545
|
+
"user": SwitchOrganizationResponseDataUserToJSON(value["user"])
|
|
10546
|
+
};
|
|
10547
|
+
}
|
|
10548
|
+
|
|
10549
|
+
// src/src/models/SwitchOrganizationResponse.ts
|
|
10550
|
+
function instanceOfSwitchOrganizationResponse(value) {
|
|
10551
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
10552
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
10553
|
+
return true;
|
|
10554
|
+
}
|
|
10555
|
+
function SwitchOrganizationResponseFromJSON(json) {
|
|
10556
|
+
return SwitchOrganizationResponseFromJSONTyped(json, false);
|
|
10557
|
+
}
|
|
10558
|
+
function SwitchOrganizationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10559
|
+
if (json == null) {
|
|
10560
|
+
return json;
|
|
10561
|
+
}
|
|
10562
|
+
return {
|
|
10563
|
+
"data": SwitchOrganizationResponseDataFromJSON(json["data"]),
|
|
10564
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
10565
|
+
};
|
|
10566
|
+
}
|
|
10567
|
+
function SwitchOrganizationResponseToJSON(json) {
|
|
10568
|
+
return SwitchOrganizationResponseToJSONTyped(json, false);
|
|
10569
|
+
}
|
|
10570
|
+
function SwitchOrganizationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10571
|
+
if (value == null) {
|
|
10572
|
+
return value;
|
|
10573
|
+
}
|
|
10574
|
+
return {
|
|
10575
|
+
"data": SwitchOrganizationResponseDataToJSON(value["data"]),
|
|
10576
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
10577
|
+
};
|
|
10578
|
+
}
|
|
10579
|
+
|
|
10580
|
+
// src/src/models/Template.ts
|
|
10581
|
+
function instanceOfTemplate(value) {
|
|
10582
|
+
return true;
|
|
10583
|
+
}
|
|
10584
|
+
function TemplateFromJSON(json) {
|
|
10585
|
+
return TemplateFromJSONTyped(json, false);
|
|
10586
|
+
}
|
|
10587
|
+
function TemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
10588
|
+
if (json == null) {
|
|
10589
|
+
return json;
|
|
10590
|
+
}
|
|
10591
|
+
return {
|
|
10592
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
10593
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
10594
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
10595
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
10596
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
10597
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
10598
|
+
"variables": json["variables"] == null ? void 0 : json["variables"],
|
|
10599
|
+
"version": json["version"] == null ? void 0 : json["version"],
|
|
10600
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
10601
|
+
"updatedAt": json["updated_at"] == null ? void 0 : new Date(json["updated_at"])
|
|
10602
|
+
};
|
|
10603
|
+
}
|
|
10604
|
+
function TemplateToJSON(json) {
|
|
10605
|
+
return TemplateToJSONTyped(json, false);
|
|
10606
|
+
}
|
|
10607
|
+
function TemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10608
|
+
if (value == null) {
|
|
10609
|
+
return value;
|
|
10610
|
+
}
|
|
10611
|
+
return {
|
|
10612
|
+
"id": value["id"],
|
|
10613
|
+
"name": value["name"],
|
|
10614
|
+
"description": value["description"],
|
|
10615
|
+
"subject": value["subject"],
|
|
10616
|
+
"html": value["html"],
|
|
10617
|
+
"text": value["text"],
|
|
9951
10618
|
"version": value["version"],
|
|
9952
10619
|
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
9953
10620
|
"updated_at": value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString()
|
|
@@ -10784,6 +11451,65 @@ function UpdateEndUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
10784
11451
|
};
|
|
10785
11452
|
}
|
|
10786
11453
|
|
|
11454
|
+
// src/src/models/UpdateOrganizationMemberRoleRequest.ts
|
|
11455
|
+
function instanceOfUpdateOrganizationMemberRoleRequest(value) {
|
|
11456
|
+
if (!("role" in value) || value["role"] === void 0) return false;
|
|
11457
|
+
return true;
|
|
11458
|
+
}
|
|
11459
|
+
function UpdateOrganizationMemberRoleRequestFromJSON(json) {
|
|
11460
|
+
return UpdateOrganizationMemberRoleRequestFromJSONTyped(json, false);
|
|
11461
|
+
}
|
|
11462
|
+
function UpdateOrganizationMemberRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11463
|
+
if (json == null) {
|
|
11464
|
+
return json;
|
|
11465
|
+
}
|
|
11466
|
+
return {
|
|
11467
|
+
"role": json["role"]
|
|
11468
|
+
};
|
|
11469
|
+
}
|
|
11470
|
+
function UpdateOrganizationMemberRoleRequestToJSON(json) {
|
|
11471
|
+
return UpdateOrganizationMemberRoleRequestToJSONTyped(json, false);
|
|
11472
|
+
}
|
|
11473
|
+
function UpdateOrganizationMemberRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11474
|
+
if (value == null) {
|
|
11475
|
+
return value;
|
|
11476
|
+
}
|
|
11477
|
+
return {
|
|
11478
|
+
"role": value["role"]
|
|
11479
|
+
};
|
|
11480
|
+
}
|
|
11481
|
+
|
|
11482
|
+
// src/src/models/UpdateOrganizationRequest.ts
|
|
11483
|
+
function instanceOfUpdateOrganizationRequest(value) {
|
|
11484
|
+
return true;
|
|
11485
|
+
}
|
|
11486
|
+
function UpdateOrganizationRequestFromJSON(json) {
|
|
11487
|
+
return UpdateOrganizationRequestFromJSONTyped(json, false);
|
|
11488
|
+
}
|
|
11489
|
+
function UpdateOrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11490
|
+
if (json == null) {
|
|
11491
|
+
return json;
|
|
11492
|
+
}
|
|
11493
|
+
return {
|
|
11494
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
11495
|
+
"slug": json["slug"] == null ? void 0 : json["slug"],
|
|
11496
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
11497
|
+
};
|
|
11498
|
+
}
|
|
11499
|
+
function UpdateOrganizationRequestToJSON(json) {
|
|
11500
|
+
return UpdateOrganizationRequestToJSONTyped(json, false);
|
|
11501
|
+
}
|
|
11502
|
+
function UpdateOrganizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11503
|
+
if (value == null) {
|
|
11504
|
+
return value;
|
|
11505
|
+
}
|
|
11506
|
+
return {
|
|
11507
|
+
"name": value["name"],
|
|
11508
|
+
"slug": value["slug"],
|
|
11509
|
+
"metadata": value["metadata"]
|
|
11510
|
+
};
|
|
11511
|
+
}
|
|
11512
|
+
|
|
10787
11513
|
// src/src/models/UpdateSubscriberPreferencesRequestPreferencesInner.ts
|
|
10788
11514
|
var UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum = {
|
|
10789
11515
|
EMAIL: "email",
|
|
@@ -11204,6 +11930,45 @@ function UserDevicesDeleteResponseToJSONTyped(value, ignoreDiscriminator = false
|
|
|
11204
11930
|
};
|
|
11205
11931
|
}
|
|
11206
11932
|
|
|
11933
|
+
// src/src/models/V1MuseSubjectsSuggestPostRequest.ts
|
|
11934
|
+
var V1MuseSubjectsSuggestPostRequestChannelEnum = {
|
|
11935
|
+
EMAIL: "email",
|
|
11936
|
+
PUSH: "push"
|
|
11937
|
+
};
|
|
11938
|
+
function instanceOfV1MuseSubjectsSuggestPostRequest(value) {
|
|
11939
|
+
if (!("channel" in value) || value["channel"] === void 0) return false;
|
|
11940
|
+
if (!("projectId" in value) || value["projectId"] === void 0) return false;
|
|
11941
|
+
return true;
|
|
11942
|
+
}
|
|
11943
|
+
function V1MuseSubjectsSuggestPostRequestFromJSON(json) {
|
|
11944
|
+
return V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, false);
|
|
11945
|
+
}
|
|
11946
|
+
function V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11947
|
+
if (json == null) {
|
|
11948
|
+
return json;
|
|
11949
|
+
}
|
|
11950
|
+
return {
|
|
11951
|
+
"templateId": json["template_id"] == null ? void 0 : json["template_id"],
|
|
11952
|
+
"templateBody": json["template_body"] == null ? void 0 : json["template_body"],
|
|
11953
|
+
"channel": json["channel"],
|
|
11954
|
+
"projectId": json["project_id"]
|
|
11955
|
+
};
|
|
11956
|
+
}
|
|
11957
|
+
function V1MuseSubjectsSuggestPostRequestToJSON(json) {
|
|
11958
|
+
return V1MuseSubjectsSuggestPostRequestToJSONTyped(json, false);
|
|
11959
|
+
}
|
|
11960
|
+
function V1MuseSubjectsSuggestPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11961
|
+
if (value == null) {
|
|
11962
|
+
return value;
|
|
11963
|
+
}
|
|
11964
|
+
return {
|
|
11965
|
+
"template_id": value["templateId"],
|
|
11966
|
+
"template_body": value["templateBody"],
|
|
11967
|
+
"channel": value["channel"],
|
|
11968
|
+
"project_id": value["projectId"]
|
|
11969
|
+
};
|
|
11970
|
+
}
|
|
11971
|
+
|
|
11207
11972
|
// src/src/models/ValidateResetTokenRequest.ts
|
|
11208
11973
|
function instanceOfValidateResetTokenRequest(value) {
|
|
11209
11974
|
if (!("token" in value) || value["token"] === void 0) return false;
|
|
@@ -11290,95 +12055,250 @@ function ValidateResetTokenResponseToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
11290
12055
|
};
|
|
11291
12056
|
}
|
|
11292
12057
|
|
|
11293
|
-
// src/src/models/
|
|
11294
|
-
|
|
12058
|
+
// src/src/models/VerificationStatusResponseData.ts
|
|
12059
|
+
var VerificationStatusResponseDataStatusEnum = {
|
|
12060
|
+
PENDING: "pending",
|
|
12061
|
+
VERIFYING: "verifying",
|
|
12062
|
+
VERIFIED: "verified",
|
|
12063
|
+
FAILED: "failed"
|
|
12064
|
+
};
|
|
12065
|
+
function instanceOfVerificationStatusResponseData(value) {
|
|
12066
|
+
if (!("domainId" in value) || value["domainId"] === void 0) return false;
|
|
12067
|
+
if (!("domain" in value) || value["domain"] === void 0) return false;
|
|
12068
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
12069
|
+
if (!("recordsVerified" in value) || value["recordsVerified"] === void 0) return false;
|
|
12070
|
+
if (!("recordsTotal" in value) || value["recordsTotal"] === void 0) return false;
|
|
12071
|
+
if (!("dnsRecords" in value) || value["dnsRecords"] === void 0) return false;
|
|
11295
12072
|
return true;
|
|
11296
12073
|
}
|
|
11297
|
-
function
|
|
11298
|
-
return
|
|
12074
|
+
function VerificationStatusResponseDataFromJSON(json) {
|
|
12075
|
+
return VerificationStatusResponseDataFromJSONTyped(json, false);
|
|
11299
12076
|
}
|
|
11300
|
-
function
|
|
12077
|
+
function VerificationStatusResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
11301
12078
|
if (json == null) {
|
|
11302
12079
|
return json;
|
|
11303
12080
|
}
|
|
11304
12081
|
return {
|
|
11305
|
-
"
|
|
11306
|
-
"
|
|
12082
|
+
"domainId": json["domain_id"],
|
|
12083
|
+
"domain": json["domain"],
|
|
12084
|
+
"status": json["status"],
|
|
12085
|
+
"recordsVerified": json["records_verified"],
|
|
12086
|
+
"recordsTotal": json["records_total"],
|
|
12087
|
+
"progress": json["progress"] == null ? void 0 : json["progress"],
|
|
12088
|
+
"dnsRecords": json["dns_records"].map(DnsRecordFromJSON),
|
|
12089
|
+
"lastCheckedAt": json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"])
|
|
11307
12090
|
};
|
|
11308
12091
|
}
|
|
11309
|
-
function
|
|
11310
|
-
return
|
|
12092
|
+
function VerificationStatusResponseDataToJSON(json) {
|
|
12093
|
+
return VerificationStatusResponseDataToJSONTyped(json, false);
|
|
11311
12094
|
}
|
|
11312
|
-
function
|
|
12095
|
+
function VerificationStatusResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11313
12096
|
if (value == null) {
|
|
11314
12097
|
return value;
|
|
11315
12098
|
}
|
|
11316
12099
|
return {
|
|
11317
|
-
"
|
|
11318
|
-
"
|
|
12100
|
+
"domain_id": value["domainId"],
|
|
12101
|
+
"domain": value["domain"],
|
|
12102
|
+
"status": value["status"],
|
|
12103
|
+
"records_verified": value["recordsVerified"],
|
|
12104
|
+
"records_total": value["recordsTotal"],
|
|
12105
|
+
"progress": value["progress"],
|
|
12106
|
+
"dns_records": value["dnsRecords"].map(DnsRecordToJSON),
|
|
12107
|
+
"last_checked_at": value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString()
|
|
11319
12108
|
};
|
|
11320
12109
|
}
|
|
11321
12110
|
|
|
11322
|
-
// src/src/models/
|
|
11323
|
-
function
|
|
12111
|
+
// src/src/models/VerificationStatusResponse.ts
|
|
12112
|
+
function instanceOfVerificationStatusResponse(value) {
|
|
12113
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
12114
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
11324
12115
|
return true;
|
|
11325
12116
|
}
|
|
11326
|
-
function
|
|
11327
|
-
return
|
|
12117
|
+
function VerificationStatusResponseFromJSON(json) {
|
|
12118
|
+
return VerificationStatusResponseFromJSONTyped(json, false);
|
|
11328
12119
|
}
|
|
11329
|
-
function
|
|
12120
|
+
function VerificationStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11330
12121
|
if (json == null) {
|
|
11331
12122
|
return json;
|
|
11332
12123
|
}
|
|
11333
12124
|
return {
|
|
11334
|
-
"data":
|
|
11335
|
-
"meta":
|
|
12125
|
+
"data": VerificationStatusResponseDataFromJSON(json["data"]),
|
|
12126
|
+
"meta": GetDomain200ResponseMetaFromJSON(json["meta"])
|
|
11336
12127
|
};
|
|
11337
12128
|
}
|
|
11338
|
-
function
|
|
11339
|
-
return
|
|
12129
|
+
function VerificationStatusResponseToJSON(json) {
|
|
12130
|
+
return VerificationStatusResponseToJSONTyped(json, false);
|
|
11340
12131
|
}
|
|
11341
|
-
function
|
|
12132
|
+
function VerificationStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11342
12133
|
if (value == null) {
|
|
11343
12134
|
return value;
|
|
11344
12135
|
}
|
|
11345
12136
|
return {
|
|
11346
|
-
"data":
|
|
11347
|
-
"meta":
|
|
12137
|
+
"data": VerificationStatusResponseDataToJSON(value["data"]),
|
|
12138
|
+
"meta": GetDomain200ResponseMetaToJSON(value["meta"])
|
|
11348
12139
|
};
|
|
11349
12140
|
}
|
|
11350
12141
|
|
|
11351
|
-
// src/src/models/
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11355
|
-
|
|
12142
|
+
// src/src/models/VerifyDomainResponseData.ts
|
|
12143
|
+
var VerifyDomainResponseDataStatusEnum = {
|
|
12144
|
+
VERIFYING: "verifying"
|
|
12145
|
+
};
|
|
12146
|
+
function instanceOfVerifyDomainResponseData(value) {
|
|
12147
|
+
if (!("jobId" in value) || value["jobId"] === void 0) return false;
|
|
12148
|
+
if (!("domainId" in value) || value["domainId"] === void 0) return false;
|
|
12149
|
+
if (!("domain" in value) || value["domain"] === void 0) return false;
|
|
12150
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
11356
12151
|
return true;
|
|
11357
12152
|
}
|
|
11358
|
-
function
|
|
11359
|
-
return
|
|
12153
|
+
function VerifyDomainResponseDataFromJSON(json) {
|
|
12154
|
+
return VerifyDomainResponseDataFromJSONTyped(json, false);
|
|
11360
12155
|
}
|
|
11361
|
-
function
|
|
12156
|
+
function VerifyDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
11362
12157
|
if (json == null) {
|
|
11363
12158
|
return json;
|
|
11364
12159
|
}
|
|
11365
12160
|
return {
|
|
11366
|
-
"
|
|
11367
|
-
"
|
|
11368
|
-
"
|
|
11369
|
-
"
|
|
12161
|
+
"jobId": json["job_id"],
|
|
12162
|
+
"domainId": json["domain_id"],
|
|
12163
|
+
"domain": json["domain"],
|
|
12164
|
+
"status": json["status"]
|
|
11370
12165
|
};
|
|
11371
12166
|
}
|
|
11372
|
-
function
|
|
11373
|
-
return
|
|
12167
|
+
function VerifyDomainResponseDataToJSON(json) {
|
|
12168
|
+
return VerifyDomainResponseDataToJSONTyped(json, false);
|
|
11374
12169
|
}
|
|
11375
|
-
function
|
|
12170
|
+
function VerifyDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11376
12171
|
if (value == null) {
|
|
11377
12172
|
return value;
|
|
11378
12173
|
}
|
|
11379
12174
|
return {
|
|
11380
|
-
"
|
|
11381
|
-
"
|
|
12175
|
+
"job_id": value["jobId"],
|
|
12176
|
+
"domain_id": value["domainId"],
|
|
12177
|
+
"domain": value["domain"],
|
|
12178
|
+
"status": value["status"]
|
|
12179
|
+
};
|
|
12180
|
+
}
|
|
12181
|
+
|
|
12182
|
+
// src/src/models/VerifyDomainResponse.ts
|
|
12183
|
+
function instanceOfVerifyDomainResponse(value) {
|
|
12184
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
12185
|
+
if (!("meta" in value) || value["meta"] === void 0) return false;
|
|
12186
|
+
return true;
|
|
12187
|
+
}
|
|
12188
|
+
function VerifyDomainResponseFromJSON(json) {
|
|
12189
|
+
return VerifyDomainResponseFromJSONTyped(json, false);
|
|
12190
|
+
}
|
|
12191
|
+
function VerifyDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12192
|
+
if (json == null) {
|
|
12193
|
+
return json;
|
|
12194
|
+
}
|
|
12195
|
+
return {
|
|
12196
|
+
"data": VerifyDomainResponseDataFromJSON(json["data"]),
|
|
12197
|
+
"meta": AddDomain200ResponseMetaFromJSON(json["meta"])
|
|
12198
|
+
};
|
|
12199
|
+
}
|
|
12200
|
+
function VerifyDomainResponseToJSON(json) {
|
|
12201
|
+
return VerifyDomainResponseToJSONTyped(json, false);
|
|
12202
|
+
}
|
|
12203
|
+
function VerifyDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12204
|
+
if (value == null) {
|
|
12205
|
+
return value;
|
|
12206
|
+
}
|
|
12207
|
+
return {
|
|
12208
|
+
"data": VerifyDomainResponseDataToJSON(value["data"]),
|
|
12209
|
+
"meta": AddDomain200ResponseMetaToJSON(value["meta"])
|
|
12210
|
+
};
|
|
12211
|
+
}
|
|
12212
|
+
|
|
12213
|
+
// src/src/models/VerifySmsConfigData.ts
|
|
12214
|
+
function instanceOfVerifySmsConfigData(value) {
|
|
12215
|
+
return true;
|
|
12216
|
+
}
|
|
12217
|
+
function VerifySmsConfigDataFromJSON(json) {
|
|
12218
|
+
return VerifySmsConfigDataFromJSONTyped(json, false);
|
|
12219
|
+
}
|
|
12220
|
+
function VerifySmsConfigDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
12221
|
+
if (json == null) {
|
|
12222
|
+
return json;
|
|
12223
|
+
}
|
|
12224
|
+
return {
|
|
12225
|
+
"verified": json["verified"] == null ? void 0 : json["verified"],
|
|
12226
|
+
"verifiedAt": json["verified_at"] == null ? void 0 : new Date(json["verified_at"])
|
|
12227
|
+
};
|
|
12228
|
+
}
|
|
12229
|
+
function VerifySmsConfigDataToJSON(json) {
|
|
12230
|
+
return VerifySmsConfigDataToJSONTyped(json, false);
|
|
12231
|
+
}
|
|
12232
|
+
function VerifySmsConfigDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12233
|
+
if (value == null) {
|
|
12234
|
+
return value;
|
|
12235
|
+
}
|
|
12236
|
+
return {
|
|
12237
|
+
"verified": value["verified"],
|
|
12238
|
+
"verified_at": value["verifiedAt"] == null ? void 0 : value["verifiedAt"].toISOString()
|
|
12239
|
+
};
|
|
12240
|
+
}
|
|
12241
|
+
|
|
12242
|
+
// src/src/models/VerifySmsConfigResponse.ts
|
|
12243
|
+
function instanceOfVerifySmsConfigResponse(value) {
|
|
12244
|
+
return true;
|
|
12245
|
+
}
|
|
12246
|
+
function VerifySmsConfigResponseFromJSON(json) {
|
|
12247
|
+
return VerifySmsConfigResponseFromJSONTyped(json, false);
|
|
12248
|
+
}
|
|
12249
|
+
function VerifySmsConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12250
|
+
if (json == null) {
|
|
12251
|
+
return json;
|
|
12252
|
+
}
|
|
12253
|
+
return {
|
|
12254
|
+
"data": json["data"] == null ? void 0 : VerifySmsConfigDataFromJSON(json["data"]),
|
|
12255
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
12256
|
+
};
|
|
12257
|
+
}
|
|
12258
|
+
function VerifySmsConfigResponseToJSON(json) {
|
|
12259
|
+
return VerifySmsConfigResponseToJSONTyped(json, false);
|
|
12260
|
+
}
|
|
12261
|
+
function VerifySmsConfigResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12262
|
+
if (value == null) {
|
|
12263
|
+
return value;
|
|
12264
|
+
}
|
|
12265
|
+
return {
|
|
12266
|
+
"data": VerifySmsConfigDataToJSON(value["data"]),
|
|
12267
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
12268
|
+
};
|
|
12269
|
+
}
|
|
12270
|
+
|
|
12271
|
+
// src/src/models/WaaSPublishEventRequest.ts
|
|
12272
|
+
function instanceOfWaaSPublishEventRequest(value) {
|
|
12273
|
+
if (!("eventType" in value) || value["eventType"] === void 0) return false;
|
|
12274
|
+
if (!("tenantId" in value) || value["tenantId"] === void 0) return false;
|
|
12275
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
12276
|
+
return true;
|
|
12277
|
+
}
|
|
12278
|
+
function WaaSPublishEventRequestFromJSON(json) {
|
|
12279
|
+
return WaaSPublishEventRequestFromJSONTyped(json, false);
|
|
12280
|
+
}
|
|
12281
|
+
function WaaSPublishEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12282
|
+
if (json == null) {
|
|
12283
|
+
return json;
|
|
12284
|
+
}
|
|
12285
|
+
return {
|
|
12286
|
+
"eventType": json["event_type"],
|
|
12287
|
+
"tenantId": json["tenant_id"],
|
|
12288
|
+
"data": json["data"],
|
|
12289
|
+
"idempotencyKey": json["idempotency_key"] == null ? void 0 : json["idempotency_key"]
|
|
12290
|
+
};
|
|
12291
|
+
}
|
|
12292
|
+
function WaaSPublishEventRequestToJSON(json) {
|
|
12293
|
+
return WaaSPublishEventRequestToJSONTyped(json, false);
|
|
12294
|
+
}
|
|
12295
|
+
function WaaSPublishEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12296
|
+
if (value == null) {
|
|
12297
|
+
return value;
|
|
12298
|
+
}
|
|
12299
|
+
return {
|
|
12300
|
+
"event_type": value["eventType"],
|
|
12301
|
+
"tenant_id": value["tenantId"],
|
|
11382
12302
|
"data": value["data"],
|
|
11383
12303
|
"idempotency_key": value["idempotencyKey"]
|
|
11384
12304
|
};
|
|
@@ -14349,6 +15269,432 @@ var AuthOAuthApi = class extends BaseAPI {
|
|
|
14349
15269
|
}
|
|
14350
15270
|
};
|
|
14351
15271
|
|
|
15272
|
+
// src/src/apis/AuthOrganizationsApi.ts
|
|
15273
|
+
var AuthOrganizationsApi = class extends BaseAPI {
|
|
15274
|
+
/**
|
|
15275
|
+
* Add a member to an organization
|
|
15276
|
+
*/
|
|
15277
|
+
async addOrganizationMemberRaw(requestParameters, initOverrides) {
|
|
15278
|
+
if (requestParameters["id"] == null) {
|
|
15279
|
+
throw new RequiredError(
|
|
15280
|
+
"id",
|
|
15281
|
+
'Required parameter "id" was null or undefined when calling addOrganizationMember().'
|
|
15282
|
+
);
|
|
15283
|
+
}
|
|
15284
|
+
if (requestParameters["addOrganizationMemberRequest"] == null) {
|
|
15285
|
+
throw new RequiredError(
|
|
15286
|
+
"addOrganizationMemberRequest",
|
|
15287
|
+
'Required parameter "addOrganizationMemberRequest" was null or undefined when calling addOrganizationMember().'
|
|
15288
|
+
);
|
|
15289
|
+
}
|
|
15290
|
+
const queryParameters = {};
|
|
15291
|
+
const headerParameters = {};
|
|
15292
|
+
headerParameters["Content-Type"] = "application/json";
|
|
15293
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15294
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15295
|
+
}
|
|
15296
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15297
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15298
|
+
}
|
|
15299
|
+
const response = await this.request({
|
|
15300
|
+
path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15301
|
+
method: "POST",
|
|
15302
|
+
headers: headerParameters,
|
|
15303
|
+
query: queryParameters,
|
|
15304
|
+
body: AddOrganizationMemberRequestToJSON(requestParameters["addOrganizationMemberRequest"])
|
|
15305
|
+
}, initOverrides);
|
|
15306
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMembershipResponseFromJSON(jsonValue));
|
|
15307
|
+
}
|
|
15308
|
+
/**
|
|
15309
|
+
* Add a member to an organization
|
|
15310
|
+
*/
|
|
15311
|
+
async addOrganizationMember(id, addOrganizationMemberRequest, initOverrides) {
|
|
15312
|
+
const response = await this.addOrganizationMemberRaw({ id, addOrganizationMemberRequest }, initOverrides);
|
|
15313
|
+
return await response.value();
|
|
15314
|
+
}
|
|
15315
|
+
/**
|
|
15316
|
+
* Create a new organization inside the current application × environment. Membership is many-to-many — add end users via POST /auth/organizations/{id}/members. The Default organization for the environment is auto-created at migration time and cannot be created via API.
|
|
15317
|
+
* Create an organization
|
|
15318
|
+
*/
|
|
15319
|
+
async createOrganizationRaw(requestParameters, initOverrides) {
|
|
15320
|
+
if (requestParameters["createOrganizationRequest"] == null) {
|
|
15321
|
+
throw new RequiredError(
|
|
15322
|
+
"createOrganizationRequest",
|
|
15323
|
+
'Required parameter "createOrganizationRequest" was null or undefined when calling createOrganization().'
|
|
15324
|
+
);
|
|
15325
|
+
}
|
|
15326
|
+
const queryParameters = {};
|
|
15327
|
+
const headerParameters = {};
|
|
15328
|
+
headerParameters["Content-Type"] = "application/json";
|
|
15329
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15330
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15331
|
+
}
|
|
15332
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15333
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15334
|
+
}
|
|
15335
|
+
const response = await this.request({
|
|
15336
|
+
path: `/auth/organizations`,
|
|
15337
|
+
method: "POST",
|
|
15338
|
+
headers: headerParameters,
|
|
15339
|
+
query: queryParameters,
|
|
15340
|
+
body: CreateOrganizationRequestToJSON(requestParameters["createOrganizationRequest"])
|
|
15341
|
+
}, initOverrides);
|
|
15342
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
15343
|
+
}
|
|
15344
|
+
/**
|
|
15345
|
+
* Create a new organization inside the current application × environment. Membership is many-to-many — add end users via POST /auth/organizations/{id}/members. The Default organization for the environment is auto-created at migration time and cannot be created via API.
|
|
15346
|
+
* Create an organization
|
|
15347
|
+
*/
|
|
15348
|
+
async createOrganization(createOrganizationRequest, initOverrides) {
|
|
15349
|
+
const response = await this.createOrganizationRaw({ createOrganizationRequest }, initOverrides);
|
|
15350
|
+
return await response.value();
|
|
15351
|
+
}
|
|
15352
|
+
/**
|
|
15353
|
+
* Hard-deletes the org and cascades memberships. The Default organization cannot be deleted.
|
|
15354
|
+
* Delete an organization
|
|
15355
|
+
*/
|
|
15356
|
+
async deleteOrganizationRaw(requestParameters, initOverrides) {
|
|
15357
|
+
if (requestParameters["id"] == null) {
|
|
15358
|
+
throw new RequiredError(
|
|
15359
|
+
"id",
|
|
15360
|
+
'Required parameter "id" was null or undefined when calling deleteOrganization().'
|
|
15361
|
+
);
|
|
15362
|
+
}
|
|
15363
|
+
const queryParameters = {};
|
|
15364
|
+
const headerParameters = {};
|
|
15365
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15366
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15367
|
+
}
|
|
15368
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15369
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15370
|
+
}
|
|
15371
|
+
const response = await this.request({
|
|
15372
|
+
path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15373
|
+
method: "DELETE",
|
|
15374
|
+
headers: headerParameters,
|
|
15375
|
+
query: queryParameters
|
|
15376
|
+
}, initOverrides);
|
|
15377
|
+
return new VoidApiResponse(response);
|
|
15378
|
+
}
|
|
15379
|
+
/**
|
|
15380
|
+
* Hard-deletes the org and cascades memberships. The Default organization cannot be deleted.
|
|
15381
|
+
* Delete an organization
|
|
15382
|
+
*/
|
|
15383
|
+
async deleteOrganization(id, initOverrides) {
|
|
15384
|
+
await this.deleteOrganizationRaw({ id }, initOverrides);
|
|
15385
|
+
}
|
|
15386
|
+
/**
|
|
15387
|
+
* Get organization by id
|
|
15388
|
+
*/
|
|
15389
|
+
async getOrganizationRaw(requestParameters, initOverrides) {
|
|
15390
|
+
if (requestParameters["id"] == null) {
|
|
15391
|
+
throw new RequiredError(
|
|
15392
|
+
"id",
|
|
15393
|
+
'Required parameter "id" was null or undefined when calling getOrganization().'
|
|
15394
|
+
);
|
|
15395
|
+
}
|
|
15396
|
+
const queryParameters = {};
|
|
15397
|
+
const headerParameters = {};
|
|
15398
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15399
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15400
|
+
}
|
|
15401
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15402
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15403
|
+
}
|
|
15404
|
+
const response = await this.request({
|
|
15405
|
+
path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15406
|
+
method: "GET",
|
|
15407
|
+
headers: headerParameters,
|
|
15408
|
+
query: queryParameters
|
|
15409
|
+
}, initOverrides);
|
|
15410
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
15411
|
+
}
|
|
15412
|
+
/**
|
|
15413
|
+
* Get organization by id
|
|
15414
|
+
*/
|
|
15415
|
+
async getOrganization(id, initOverrides) {
|
|
15416
|
+
const response = await this.getOrganizationRaw({ id }, initOverrides);
|
|
15417
|
+
return await response.value();
|
|
15418
|
+
}
|
|
15419
|
+
/**
|
|
15420
|
+
* List organization members
|
|
15421
|
+
*/
|
|
15422
|
+
async listOrganizationMembersRaw(requestParameters, initOverrides) {
|
|
15423
|
+
if (requestParameters["id"] == null) {
|
|
15424
|
+
throw new RequiredError(
|
|
15425
|
+
"id",
|
|
15426
|
+
'Required parameter "id" was null or undefined when calling listOrganizationMembers().'
|
|
15427
|
+
);
|
|
15428
|
+
}
|
|
15429
|
+
const queryParameters = {};
|
|
15430
|
+
if (requestParameters["limit"] != null) {
|
|
15431
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
15432
|
+
}
|
|
15433
|
+
if (requestParameters["cursor"] != null) {
|
|
15434
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
15435
|
+
}
|
|
15436
|
+
const headerParameters = {};
|
|
15437
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15438
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15439
|
+
}
|
|
15440
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15441
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15442
|
+
}
|
|
15443
|
+
const response = await this.request({
|
|
15444
|
+
path: `/auth/organizations/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15445
|
+
method: "GET",
|
|
15446
|
+
headers: headerParameters,
|
|
15447
|
+
query: queryParameters
|
|
15448
|
+
}, initOverrides);
|
|
15449
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMembersListResponseFromJSON(jsonValue));
|
|
15450
|
+
}
|
|
15451
|
+
/**
|
|
15452
|
+
* List organization members
|
|
15453
|
+
*/
|
|
15454
|
+
async listOrganizationMembers(id, limit, cursor, initOverrides) {
|
|
15455
|
+
const response = await this.listOrganizationMembersRaw({ id, limit, cursor }, initOverrides);
|
|
15456
|
+
return await response.value();
|
|
15457
|
+
}
|
|
15458
|
+
/**
|
|
15459
|
+
* List organizations in the current environment. Cursor-paginated.
|
|
15460
|
+
* List organizations
|
|
15461
|
+
*/
|
|
15462
|
+
async listOrganizationsRaw(requestParameters, initOverrides) {
|
|
15463
|
+
const queryParameters = {};
|
|
15464
|
+
if (requestParameters["limit"] != null) {
|
|
15465
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
15466
|
+
}
|
|
15467
|
+
if (requestParameters["cursor"] != null) {
|
|
15468
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
15469
|
+
}
|
|
15470
|
+
if (requestParameters["search"] != null) {
|
|
15471
|
+
queryParameters["search"] = requestParameters["search"];
|
|
15472
|
+
}
|
|
15473
|
+
const headerParameters = {};
|
|
15474
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15475
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15476
|
+
}
|
|
15477
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15478
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15479
|
+
}
|
|
15480
|
+
const response = await this.request({
|
|
15481
|
+
path: `/auth/organizations`,
|
|
15482
|
+
method: "GET",
|
|
15483
|
+
headers: headerParameters,
|
|
15484
|
+
query: queryParameters
|
|
15485
|
+
}, initOverrides);
|
|
15486
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationListResponseFromJSON(jsonValue));
|
|
15487
|
+
}
|
|
15488
|
+
/**
|
|
15489
|
+
* List organizations in the current environment. Cursor-paginated.
|
|
15490
|
+
* List organizations
|
|
15491
|
+
*/
|
|
15492
|
+
async listOrganizations(limit, cursor, search, initOverrides) {
|
|
15493
|
+
const response = await this.listOrganizationsRaw({ limit, cursor, search }, initOverrides);
|
|
15494
|
+
return await response.value();
|
|
15495
|
+
}
|
|
15496
|
+
/**
|
|
15497
|
+
* Inverse of the membership list — returns all orgs the user is a member of within the current environment. Use this when the orgs[] JWT claim is omitted because the user belongs to more than 50.
|
|
15498
|
+
* List organizations an end user belongs to
|
|
15499
|
+
*/
|
|
15500
|
+
async listOrganizationsForEndUserRaw(requestParameters, initOverrides) {
|
|
15501
|
+
if (requestParameters["userId"] == null) {
|
|
15502
|
+
throw new RequiredError(
|
|
15503
|
+
"userId",
|
|
15504
|
+
'Required parameter "userId" was null or undefined when calling listOrganizationsForEndUser().'
|
|
15505
|
+
);
|
|
15506
|
+
}
|
|
15507
|
+
const queryParameters = {};
|
|
15508
|
+
const headerParameters = {};
|
|
15509
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15510
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15511
|
+
}
|
|
15512
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15513
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15514
|
+
}
|
|
15515
|
+
const response = await this.request({
|
|
15516
|
+
path: `/auth/end-users/{user_id}/organizations`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
15517
|
+
method: "GET",
|
|
15518
|
+
headers: headerParameters,
|
|
15519
|
+
query: queryParameters
|
|
15520
|
+
}, initOverrides);
|
|
15521
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationListResponseFromJSON(jsonValue));
|
|
15522
|
+
}
|
|
15523
|
+
/**
|
|
15524
|
+
* Inverse of the membership list — returns all orgs the user is a member of within the current environment. Use this when the orgs[] JWT claim is omitted because the user belongs to more than 50.
|
|
15525
|
+
* List organizations an end user belongs to
|
|
15526
|
+
*/
|
|
15527
|
+
async listOrganizationsForEndUser(userId, initOverrides) {
|
|
15528
|
+
const response = await this.listOrganizationsForEndUserRaw({ userId }, initOverrides);
|
|
15529
|
+
return await response.value();
|
|
15530
|
+
}
|
|
15531
|
+
/**
|
|
15532
|
+
* Remove a member from an organization
|
|
15533
|
+
*/
|
|
15534
|
+
async removeOrganizationMemberRaw(requestParameters, initOverrides) {
|
|
15535
|
+
if (requestParameters["id"] == null) {
|
|
15536
|
+
throw new RequiredError(
|
|
15537
|
+
"id",
|
|
15538
|
+
'Required parameter "id" was null or undefined when calling removeOrganizationMember().'
|
|
15539
|
+
);
|
|
15540
|
+
}
|
|
15541
|
+
if (requestParameters["userId"] == null) {
|
|
15542
|
+
throw new RequiredError(
|
|
15543
|
+
"userId",
|
|
15544
|
+
'Required parameter "userId" was null or undefined when calling removeOrganizationMember().'
|
|
15545
|
+
);
|
|
15546
|
+
}
|
|
15547
|
+
const queryParameters = {};
|
|
15548
|
+
const headerParameters = {};
|
|
15549
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15550
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15551
|
+
}
|
|
15552
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15553
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15554
|
+
}
|
|
15555
|
+
const response = await this.request({
|
|
15556
|
+
path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
15557
|
+
method: "DELETE",
|
|
15558
|
+
headers: headerParameters,
|
|
15559
|
+
query: queryParameters
|
|
15560
|
+
}, initOverrides);
|
|
15561
|
+
return new VoidApiResponse(response);
|
|
15562
|
+
}
|
|
15563
|
+
/**
|
|
15564
|
+
* Remove a member from an organization
|
|
15565
|
+
*/
|
|
15566
|
+
async removeOrganizationMember(id, userId, initOverrides) {
|
|
15567
|
+
await this.removeOrganizationMemberRaw({ id, userId }, initOverrides);
|
|
15568
|
+
}
|
|
15569
|
+
/**
|
|
15570
|
+
* Takes a valid refresh token + a target organization the user is a member of, verifies membership at mint time, revokes the old session, and mints a fresh access + refresh pair with `org_id` set to the target. The old refresh token is invalidated (jti rotated). Use this when the user\'s active workspace changes (the Slack/Linear workspace-switch pattern).
|
|
15571
|
+
* Switch the active organization on a session
|
|
15572
|
+
*/
|
|
15573
|
+
async switchOrganizationRaw(requestParameters, initOverrides) {
|
|
15574
|
+
if (requestParameters["switchOrganizationRequest"] == null) {
|
|
15575
|
+
throw new RequiredError(
|
|
15576
|
+
"switchOrganizationRequest",
|
|
15577
|
+
'Required parameter "switchOrganizationRequest" was null or undefined when calling switchOrganization().'
|
|
15578
|
+
);
|
|
15579
|
+
}
|
|
15580
|
+
const queryParameters = {};
|
|
15581
|
+
const headerParameters = {};
|
|
15582
|
+
headerParameters["Content-Type"] = "application/json";
|
|
15583
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15584
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15585
|
+
}
|
|
15586
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15587
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15588
|
+
}
|
|
15589
|
+
const response = await this.request({
|
|
15590
|
+
path: `/auth/sessions/switch-organization`,
|
|
15591
|
+
method: "POST",
|
|
15592
|
+
headers: headerParameters,
|
|
15593
|
+
query: queryParameters,
|
|
15594
|
+
body: SwitchOrganizationRequestToJSON(requestParameters["switchOrganizationRequest"])
|
|
15595
|
+
}, initOverrides);
|
|
15596
|
+
return new JSONApiResponse(response, (jsonValue) => SwitchOrganizationResponseFromJSON(jsonValue));
|
|
15597
|
+
}
|
|
15598
|
+
/**
|
|
15599
|
+
* Takes a valid refresh token + a target organization the user is a member of, verifies membership at mint time, revokes the old session, and mints a fresh access + refresh pair with `org_id` set to the target. The old refresh token is invalidated (jti rotated). Use this when the user\'s active workspace changes (the Slack/Linear workspace-switch pattern).
|
|
15600
|
+
* Switch the active organization on a session
|
|
15601
|
+
*/
|
|
15602
|
+
async switchOrganization(switchOrganizationRequest, initOverrides) {
|
|
15603
|
+
const response = await this.switchOrganizationRaw({ switchOrganizationRequest }, initOverrides);
|
|
15604
|
+
return await response.value();
|
|
15605
|
+
}
|
|
15606
|
+
/**
|
|
15607
|
+
* The Default organization cannot be renamed or have its slug/metadata changed.
|
|
15608
|
+
* Update an organization
|
|
15609
|
+
*/
|
|
15610
|
+
async updateOrganizationRaw(requestParameters, initOverrides) {
|
|
15611
|
+
if (requestParameters["id"] == null) {
|
|
15612
|
+
throw new RequiredError(
|
|
15613
|
+
"id",
|
|
15614
|
+
'Required parameter "id" was null or undefined when calling updateOrganization().'
|
|
15615
|
+
);
|
|
15616
|
+
}
|
|
15617
|
+
if (requestParameters["updateOrganizationRequest"] == null) {
|
|
15618
|
+
throw new RequiredError(
|
|
15619
|
+
"updateOrganizationRequest",
|
|
15620
|
+
'Required parameter "updateOrganizationRequest" was null or undefined when calling updateOrganization().'
|
|
15621
|
+
);
|
|
15622
|
+
}
|
|
15623
|
+
const queryParameters = {};
|
|
15624
|
+
const headerParameters = {};
|
|
15625
|
+
headerParameters["Content-Type"] = "application/json";
|
|
15626
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15627
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15628
|
+
}
|
|
15629
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15630
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15631
|
+
}
|
|
15632
|
+
const response = await this.request({
|
|
15633
|
+
path: `/auth/organizations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15634
|
+
method: "PATCH",
|
|
15635
|
+
headers: headerParameters,
|
|
15636
|
+
query: queryParameters,
|
|
15637
|
+
body: UpdateOrganizationRequestToJSON(requestParameters["updateOrganizationRequest"])
|
|
15638
|
+
}, initOverrides);
|
|
15639
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
15640
|
+
}
|
|
15641
|
+
/**
|
|
15642
|
+
* The Default organization cannot be renamed or have its slug/metadata changed.
|
|
15643
|
+
* Update an organization
|
|
15644
|
+
*/
|
|
15645
|
+
async updateOrganization(id, updateOrganizationRequest, initOverrides) {
|
|
15646
|
+
const response = await this.updateOrganizationRaw({ id, updateOrganizationRequest }, initOverrides);
|
|
15647
|
+
return await response.value();
|
|
15648
|
+
}
|
|
15649
|
+
/**
|
|
15650
|
+
* Update a member\'s role
|
|
15651
|
+
*/
|
|
15652
|
+
async updateOrganizationMemberRoleRaw(requestParameters, initOverrides) {
|
|
15653
|
+
if (requestParameters["id"] == null) {
|
|
15654
|
+
throw new RequiredError(
|
|
15655
|
+
"id",
|
|
15656
|
+
'Required parameter "id" was null or undefined when calling updateOrganizationMemberRole().'
|
|
15657
|
+
);
|
|
15658
|
+
}
|
|
15659
|
+
if (requestParameters["userId"] == null) {
|
|
15660
|
+
throw new RequiredError(
|
|
15661
|
+
"userId",
|
|
15662
|
+
'Required parameter "userId" was null or undefined when calling updateOrganizationMemberRole().'
|
|
15663
|
+
);
|
|
15664
|
+
}
|
|
15665
|
+
if (requestParameters["updateOrganizationMemberRoleRequest"] == null) {
|
|
15666
|
+
throw new RequiredError(
|
|
15667
|
+
"updateOrganizationMemberRoleRequest",
|
|
15668
|
+
'Required parameter "updateOrganizationMemberRoleRequest" was null or undefined when calling updateOrganizationMemberRole().'
|
|
15669
|
+
);
|
|
15670
|
+
}
|
|
15671
|
+
const queryParameters = {};
|
|
15672
|
+
const headerParameters = {};
|
|
15673
|
+
headerParameters["Content-Type"] = "application/json";
|
|
15674
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15675
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
15676
|
+
}
|
|
15677
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15678
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
15679
|
+
}
|
|
15680
|
+
const response = await this.request({
|
|
15681
|
+
path: `/auth/organizations/{id}/members/{user_id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
15682
|
+
method: "PATCH",
|
|
15683
|
+
headers: headerParameters,
|
|
15684
|
+
query: queryParameters,
|
|
15685
|
+
body: UpdateOrganizationMemberRoleRequestToJSON(requestParameters["updateOrganizationMemberRoleRequest"])
|
|
15686
|
+
}, initOverrides);
|
|
15687
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMembershipResponseFromJSON(jsonValue));
|
|
15688
|
+
}
|
|
15689
|
+
/**
|
|
15690
|
+
* Update a member\'s role
|
|
15691
|
+
*/
|
|
15692
|
+
async updateOrganizationMemberRole(id, userId, updateOrganizationMemberRoleRequest, initOverrides) {
|
|
15693
|
+
const response = await this.updateOrganizationMemberRoleRaw({ id, userId, updateOrganizationMemberRoleRequest }, initOverrides);
|
|
15694
|
+
return await response.value();
|
|
15695
|
+
}
|
|
15696
|
+
};
|
|
15697
|
+
|
|
14352
15698
|
// src/src/apis/AuthPasswordResetApi.ts
|
|
14353
15699
|
var AuthPasswordResetApi = class extends BaseAPI {
|
|
14354
15700
|
/**
|
|
@@ -14930,6 +16276,40 @@ var AuthUserProfileApi = class extends BaseAPI {
|
|
|
14930
16276
|
const response = await this.deleteEndUserRaw(initOverrides);
|
|
14931
16277
|
return await response.value();
|
|
14932
16278
|
}
|
|
16279
|
+
/**
|
|
16280
|
+
* App-credentialed soft-delete for an end user, scoped to the test environment only. Live-mode credentials receive 403 — this is the intentional safety guard against a misconfigured CI runner nuking production users. Mirrors the self-service `DELETE /auth/users/me` flow: revokes all sessions, soft-deletes the row (status=\'deleted\'), and emits a `user.deleted` webhook with `method=\'application_admin\'`. The audit log row survives (no FK to end_users), so org-history queries still resolve. Intended for smoke / test-fixture cleanup. Production deletes should continue to use `DELETE /auth/users/me` from the end-user\'s own session or the dashboard.
|
|
16281
|
+
* Delete an end user (test environment only)
|
|
16282
|
+
*/
|
|
16283
|
+
async deleteEndUserByApplicationRaw(requestParameters, initOverrides) {
|
|
16284
|
+
if (requestParameters["userId"] == null) {
|
|
16285
|
+
throw new RequiredError(
|
|
16286
|
+
"userId",
|
|
16287
|
+
'Required parameter "userId" was null or undefined when calling deleteEndUserByApplication().'
|
|
16288
|
+
);
|
|
16289
|
+
}
|
|
16290
|
+
const queryParameters = {};
|
|
16291
|
+
const headerParameters = {};
|
|
16292
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16293
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
16294
|
+
}
|
|
16295
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16296
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
16297
|
+
}
|
|
16298
|
+
const response = await this.request({
|
|
16299
|
+
path: `/auth/users/{user_id}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters["userId"]))),
|
|
16300
|
+
method: "DELETE",
|
|
16301
|
+
headers: headerParameters,
|
|
16302
|
+
query: queryParameters
|
|
16303
|
+
}, initOverrides);
|
|
16304
|
+
return new VoidApiResponse(response);
|
|
16305
|
+
}
|
|
16306
|
+
/**
|
|
16307
|
+
* App-credentialed soft-delete for an end user, scoped to the test environment only. Live-mode credentials receive 403 — this is the intentional safety guard against a misconfigured CI runner nuking production users. Mirrors the self-service `DELETE /auth/users/me` flow: revokes all sessions, soft-deletes the row (status=\'deleted\'), and emits a `user.deleted` webhook with `method=\'application_admin\'`. The audit log row survives (no FK to end_users), so org-history queries still resolve. Intended for smoke / test-fixture cleanup. Production deletes should continue to use `DELETE /auth/users/me` from the end-user\'s own session or the dashboard.
|
|
16308
|
+
* Delete an end user (test environment only)
|
|
16309
|
+
*/
|
|
16310
|
+
async deleteEndUserByApplication(userId, initOverrides) {
|
|
16311
|
+
await this.deleteEndUserByApplicationRaw({ userId }, initOverrides);
|
|
16312
|
+
}
|
|
14933
16313
|
/**
|
|
14934
16314
|
* Retrieve the profile of the currently authenticated end user.
|
|
14935
16315
|
* Get current end user profile
|
|
@@ -15551,6 +16931,102 @@ var DomainsApi = class extends BaseAPI {
|
|
|
15551
16931
|
const response = await this.addDomainRaw({ addDomainRequest }, initOverrides);
|
|
15552
16932
|
return await response.value();
|
|
15553
16933
|
}
|
|
16934
|
+
/**
|
|
16935
|
+
* Remove a sending domain from the project. The domain is also detached from any SES identity that was provisioned for it. Returns 409 if the domain is still referenced by other resources (templates, scheduled sends, etc.) — those must be removed first.
|
|
16936
|
+
* Remove a sending domain
|
|
16937
|
+
*/
|
|
16938
|
+
async deleteDomainRaw(requestParameters, initOverrides) {
|
|
16939
|
+
if (requestParameters["id"] == null) {
|
|
16940
|
+
throw new RequiredError(
|
|
16941
|
+
"id",
|
|
16942
|
+
'Required parameter "id" was null or undefined when calling deleteDomain().'
|
|
16943
|
+
);
|
|
16944
|
+
}
|
|
16945
|
+
const queryParameters = {};
|
|
16946
|
+
const headerParameters = {};
|
|
16947
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16948
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
16949
|
+
}
|
|
16950
|
+
const response = await this.request({
|
|
16951
|
+
path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
16952
|
+
method: "DELETE",
|
|
16953
|
+
headers: headerParameters,
|
|
16954
|
+
query: queryParameters
|
|
16955
|
+
}, initOverrides);
|
|
16956
|
+
return new JSONApiResponse(response, (jsonValue) => DeleteDomainResponseFromJSON(jsonValue));
|
|
16957
|
+
}
|
|
16958
|
+
/**
|
|
16959
|
+
* Remove a sending domain from the project. The domain is also detached from any SES identity that was provisioned for it. Returns 409 if the domain is still referenced by other resources (templates, scheduled sends, etc.) — those must be removed first.
|
|
16960
|
+
* Remove a sending domain
|
|
16961
|
+
*/
|
|
16962
|
+
async deleteDomain(id, initOverrides) {
|
|
16963
|
+
const response = await this.deleteDomainRaw({ id }, initOverrides);
|
|
16964
|
+
return await response.value();
|
|
16965
|
+
}
|
|
16966
|
+
/**
|
|
16967
|
+
* Retrieve a single sending domain by ID, including DNS records and verification counters.
|
|
16968
|
+
* Get a sending domain
|
|
16969
|
+
*/
|
|
16970
|
+
async getDomainRaw(requestParameters, initOverrides) {
|
|
16971
|
+
if (requestParameters["id"] == null) {
|
|
16972
|
+
throw new RequiredError(
|
|
16973
|
+
"id",
|
|
16974
|
+
'Required parameter "id" was null or undefined when calling getDomain().'
|
|
16975
|
+
);
|
|
16976
|
+
}
|
|
16977
|
+
const queryParameters = {};
|
|
16978
|
+
const headerParameters = {};
|
|
16979
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16980
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
16981
|
+
}
|
|
16982
|
+
const response = await this.request({
|
|
16983
|
+
path: `/domains/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
16984
|
+
method: "GET",
|
|
16985
|
+
headers: headerParameters,
|
|
16986
|
+
query: queryParameters
|
|
16987
|
+
}, initOverrides);
|
|
16988
|
+
return new JSONApiResponse(response, (jsonValue) => GetDomain200ResponseFromJSON(jsonValue));
|
|
16989
|
+
}
|
|
16990
|
+
/**
|
|
16991
|
+
* Retrieve a single sending domain by ID, including DNS records and verification counters.
|
|
16992
|
+
* Get a sending domain
|
|
16993
|
+
*/
|
|
16994
|
+
async getDomain(id, initOverrides) {
|
|
16995
|
+
const response = await this.getDomainRaw({ id }, initOverrides);
|
|
16996
|
+
return await response.value();
|
|
16997
|
+
}
|
|
16998
|
+
/**
|
|
16999
|
+
* Returns the current verification status with per-record `verified` flags and aggregate counters. Useful when polling for terminal status from an AI agent (the recommended pattern is to subscribe to the `domain.verified` webhook event instead — see sc-5444).
|
|
17000
|
+
* Get domain verification status
|
|
17001
|
+
*/
|
|
17002
|
+
async getDomainVerificationStatusRaw(requestParameters, initOverrides) {
|
|
17003
|
+
if (requestParameters["id"] == null) {
|
|
17004
|
+
throw new RequiredError(
|
|
17005
|
+
"id",
|
|
17006
|
+
'Required parameter "id" was null or undefined when calling getDomainVerificationStatus().'
|
|
17007
|
+
);
|
|
17008
|
+
}
|
|
17009
|
+
const queryParameters = {};
|
|
17010
|
+
const headerParameters = {};
|
|
17011
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
17012
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
17013
|
+
}
|
|
17014
|
+
const response = await this.request({
|
|
17015
|
+
path: `/domains/{id}/verification-status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
17016
|
+
method: "GET",
|
|
17017
|
+
headers: headerParameters,
|
|
17018
|
+
query: queryParameters
|
|
17019
|
+
}, initOverrides);
|
|
17020
|
+
return new JSONApiResponse(response, (jsonValue) => VerificationStatusResponseFromJSON(jsonValue));
|
|
17021
|
+
}
|
|
17022
|
+
/**
|
|
17023
|
+
* Returns the current verification status with per-record `verified` flags and aggregate counters. Useful when polling for terminal status from an AI agent (the recommended pattern is to subscribe to the `domain.verified` webhook event instead — see sc-5444).
|
|
17024
|
+
* Get domain verification status
|
|
17025
|
+
*/
|
|
17026
|
+
async getDomainVerificationStatus(id, initOverrides) {
|
|
17027
|
+
const response = await this.getDomainVerificationStatusRaw({ id }, initOverrides);
|
|
17028
|
+
return await response.value();
|
|
17029
|
+
}
|
|
15554
17030
|
/**
|
|
15555
17031
|
* List sending domains on the current project, with verification status and DNS records.
|
|
15556
17032
|
* List sending domains
|
|
@@ -15577,6 +17053,38 @@ var DomainsApi = class extends BaseAPI {
|
|
|
15577
17053
|
const response = await this.listDomainsRaw(initOverrides);
|
|
15578
17054
|
return await response.value();
|
|
15579
17055
|
}
|
|
17056
|
+
/**
|
|
17057
|
+
* Queue an asynchronous DNS verification check. Returns immediately with a `job_id`. Poll `GET /v1/domains/{id}/verification-status` (or the higher-level `GET /v1/domains/{id}`) for the result, or subscribe to the `domain.verified` webhook event when sc-5444 ships. Returns 409 if a verification is already in progress for this domain (within the last 2 minutes).
|
|
17058
|
+
* Trigger domain verification
|
|
17059
|
+
*/
|
|
17060
|
+
async verifyDomainRaw(requestParameters, initOverrides) {
|
|
17061
|
+
if (requestParameters["id"] == null) {
|
|
17062
|
+
throw new RequiredError(
|
|
17063
|
+
"id",
|
|
17064
|
+
'Required parameter "id" was null or undefined when calling verifyDomain().'
|
|
17065
|
+
);
|
|
17066
|
+
}
|
|
17067
|
+
const queryParameters = {};
|
|
17068
|
+
const headerParameters = {};
|
|
17069
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
17070
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
17071
|
+
}
|
|
17072
|
+
const response = await this.request({
|
|
17073
|
+
path: `/domains/{id}/verify`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
17074
|
+
method: "POST",
|
|
17075
|
+
headers: headerParameters,
|
|
17076
|
+
query: queryParameters
|
|
17077
|
+
}, initOverrides);
|
|
17078
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyDomainResponseFromJSON(jsonValue));
|
|
17079
|
+
}
|
|
17080
|
+
/**
|
|
17081
|
+
* Queue an asynchronous DNS verification check. Returns immediately with a `job_id`. Poll `GET /v1/domains/{id}/verification-status` (or the higher-level `GET /v1/domains/{id}`) for the result, or subscribe to the `domain.verified` webhook event when sc-5444 ships. Returns 409 if a verification is already in progress for this domain (within the last 2 minutes).
|
|
17082
|
+
* Trigger domain verification
|
|
17083
|
+
*/
|
|
17084
|
+
async verifyDomain(id, initOverrides) {
|
|
17085
|
+
const response = await this.verifyDomainRaw({ id }, initOverrides);
|
|
17086
|
+
return await response.value();
|
|
17087
|
+
}
|
|
15580
17088
|
};
|
|
15581
17089
|
|
|
15582
17090
|
// src/src/apis/EmailsApi.ts
|
|
@@ -16609,6 +18117,266 @@ var ListAllInboxStatusEnum = {
|
|
|
16609
18117
|
ARCHIVED: "archived"
|
|
16610
18118
|
};
|
|
16611
18119
|
|
|
18120
|
+
// src/src/apis/MuseApi.ts
|
|
18121
|
+
var MuseApi = class extends BaseAPI {
|
|
18122
|
+
/**
|
|
18123
|
+
* Returns Muse invocations for the caller\'s account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
|
|
18124
|
+
* Paginated per-call audit log for Muse
|
|
18125
|
+
*/
|
|
18126
|
+
async v1MuseAuditLogGetRaw(initOverrides) {
|
|
18127
|
+
const queryParameters = {};
|
|
18128
|
+
const headerParameters = {};
|
|
18129
|
+
const response = await this.request({
|
|
18130
|
+
path: `/v1/muse/audit-log`,
|
|
18131
|
+
method: "GET",
|
|
18132
|
+
headers: headerParameters,
|
|
18133
|
+
query: queryParameters
|
|
18134
|
+
}, initOverrides);
|
|
18135
|
+
return new VoidApiResponse(response);
|
|
18136
|
+
}
|
|
18137
|
+
/**
|
|
18138
|
+
* Returns Muse invocations for the caller\'s account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
|
|
18139
|
+
* Paginated per-call audit log for Muse
|
|
18140
|
+
*/
|
|
18141
|
+
async v1MuseAuditLogGet(initOverrides) {
|
|
18142
|
+
await this.v1MuseAuditLogGetRaw(initOverrides);
|
|
18143
|
+
}
|
|
18144
|
+
/**
|
|
18145
|
+
* Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
|
|
18146
|
+
* Stream a pre-send advisory for a draft broadcast
|
|
18147
|
+
*/
|
|
18148
|
+
async v1MuseBroadcastsAnalyzePostRaw(initOverrides) {
|
|
18149
|
+
const queryParameters = {};
|
|
18150
|
+
const headerParameters = {};
|
|
18151
|
+
const response = await this.request({
|
|
18152
|
+
path: `/v1/muse/broadcasts/analyze`,
|
|
18153
|
+
method: "POST",
|
|
18154
|
+
headers: headerParameters,
|
|
18155
|
+
query: queryParameters
|
|
18156
|
+
}, initOverrides);
|
|
18157
|
+
return new VoidApiResponse(response);
|
|
18158
|
+
}
|
|
18159
|
+
/**
|
|
18160
|
+
* Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
|
|
18161
|
+
* Stream a pre-send advisory for a draft broadcast
|
|
18162
|
+
*/
|
|
18163
|
+
async v1MuseBroadcastsAnalyzePost(initOverrides) {
|
|
18164
|
+
await this.v1MuseBroadcastsAnalyzePostRaw(initOverrides);
|
|
18165
|
+
}
|
|
18166
|
+
/**
|
|
18167
|
+
* Returns whether the caller\'s account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
|
|
18168
|
+
* Return the current account\'s Zyphr Muse entitlement
|
|
18169
|
+
*/
|
|
18170
|
+
async v1MuseEntitlementGetRaw(initOverrides) {
|
|
18171
|
+
const queryParameters = {};
|
|
18172
|
+
const headerParameters = {};
|
|
18173
|
+
const response = await this.request({
|
|
18174
|
+
path: `/v1/muse/entitlement`,
|
|
18175
|
+
method: "GET",
|
|
18176
|
+
headers: headerParameters,
|
|
18177
|
+
query: queryParameters
|
|
18178
|
+
}, initOverrides);
|
|
18179
|
+
return new VoidApiResponse(response);
|
|
18180
|
+
}
|
|
18181
|
+
/**
|
|
18182
|
+
* Returns whether the caller\'s account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
|
|
18183
|
+
* Return the current account\'s Zyphr Muse entitlement
|
|
18184
|
+
*/
|
|
18185
|
+
async v1MuseEntitlementGet(initOverrides) {
|
|
18186
|
+
await this.v1MuseEntitlementGetRaw(initOverrides);
|
|
18187
|
+
}
|
|
18188
|
+
/**
|
|
18189
|
+
* Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don\'t see this — it\'s for the internal Muse settings page / admin portal.
|
|
18190
|
+
* Per-prompt eval baseline snapshots
|
|
18191
|
+
*/
|
|
18192
|
+
async v1MuseEvalBaselinesGetRaw(initOverrides) {
|
|
18193
|
+
const queryParameters = {};
|
|
18194
|
+
const headerParameters = {};
|
|
18195
|
+
const response = await this.request({
|
|
18196
|
+
path: `/v1/muse/eval-baselines`,
|
|
18197
|
+
method: "GET",
|
|
18198
|
+
headers: headerParameters,
|
|
18199
|
+
query: queryParameters
|
|
18200
|
+
}, initOverrides);
|
|
18201
|
+
return new VoidApiResponse(response);
|
|
18202
|
+
}
|
|
18203
|
+
/**
|
|
18204
|
+
* Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don\'t see this — it\'s for the internal Muse settings page / admin portal.
|
|
18205
|
+
* Per-prompt eval baseline snapshots
|
|
18206
|
+
*/
|
|
18207
|
+
async v1MuseEvalBaselinesGet(initOverrides) {
|
|
18208
|
+
await this.v1MuseEvalBaselinesGetRaw(initOverrides);
|
|
18209
|
+
}
|
|
18210
|
+
/**
|
|
18211
|
+
* Returns the project\'s Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
|
|
18212
|
+
* Read Muse settings for a project
|
|
18213
|
+
*/
|
|
18214
|
+
async v1MuseSettingsProjectIdGetRaw(requestParameters, initOverrides) {
|
|
18215
|
+
if (requestParameters["projectId"] == null) {
|
|
18216
|
+
throw new RequiredError(
|
|
18217
|
+
"projectId",
|
|
18218
|
+
'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdGet().'
|
|
18219
|
+
);
|
|
18220
|
+
}
|
|
18221
|
+
const queryParameters = {};
|
|
18222
|
+
const headerParameters = {};
|
|
18223
|
+
const response = await this.request({
|
|
18224
|
+
path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
|
|
18225
|
+
method: "GET",
|
|
18226
|
+
headers: headerParameters,
|
|
18227
|
+
query: queryParameters
|
|
18228
|
+
}, initOverrides);
|
|
18229
|
+
return new VoidApiResponse(response);
|
|
18230
|
+
}
|
|
18231
|
+
/**
|
|
18232
|
+
* Returns the project\'s Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
|
|
18233
|
+
* Read Muse settings for a project
|
|
18234
|
+
*/
|
|
18235
|
+
async v1MuseSettingsProjectIdGet(projectId, initOverrides) {
|
|
18236
|
+
await this.v1MuseSettingsProjectIdGetRaw({ projectId }, initOverrides);
|
|
18237
|
+
}
|
|
18238
|
+
/**
|
|
18239
|
+
* Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
|
|
18240
|
+
* Update Muse settings for a project (admin or developer only)
|
|
18241
|
+
*/
|
|
18242
|
+
async v1MuseSettingsProjectIdPatchRaw(requestParameters, initOverrides) {
|
|
18243
|
+
if (requestParameters["projectId"] == null) {
|
|
18244
|
+
throw new RequiredError(
|
|
18245
|
+
"projectId",
|
|
18246
|
+
'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdPatch().'
|
|
18247
|
+
);
|
|
18248
|
+
}
|
|
18249
|
+
const queryParameters = {};
|
|
18250
|
+
const headerParameters = {};
|
|
18251
|
+
const response = await this.request({
|
|
18252
|
+
path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
|
|
18253
|
+
method: "PATCH",
|
|
18254
|
+
headers: headerParameters,
|
|
18255
|
+
query: queryParameters
|
|
18256
|
+
}, initOverrides);
|
|
18257
|
+
return new VoidApiResponse(response);
|
|
18258
|
+
}
|
|
18259
|
+
/**
|
|
18260
|
+
* Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
|
|
18261
|
+
* Update Muse settings for a project (admin or developer only)
|
|
18262
|
+
*/
|
|
18263
|
+
async v1MuseSettingsProjectIdPatch(projectId, initOverrides) {
|
|
18264
|
+
await this.v1MuseSettingsProjectIdPatchRaw({ projectId }, initOverrides);
|
|
18265
|
+
}
|
|
18266
|
+
/**
|
|
18267
|
+
* Suggest 5 ranked subject-line candidates for a template
|
|
18268
|
+
*/
|
|
18269
|
+
async v1MuseSubjectsSuggestPostRaw(requestParameters, initOverrides) {
|
|
18270
|
+
if (requestParameters["v1MuseSubjectsSuggestPostRequest"] == null) {
|
|
18271
|
+
throw new RequiredError(
|
|
18272
|
+
"v1MuseSubjectsSuggestPostRequest",
|
|
18273
|
+
'Required parameter "v1MuseSubjectsSuggestPostRequest" was null or undefined when calling v1MuseSubjectsSuggestPost().'
|
|
18274
|
+
);
|
|
18275
|
+
}
|
|
18276
|
+
const queryParameters = {};
|
|
18277
|
+
const headerParameters = {};
|
|
18278
|
+
headerParameters["Content-Type"] = "application/json";
|
|
18279
|
+
const response = await this.request({
|
|
18280
|
+
path: `/v1/muse/subjects/suggest`,
|
|
18281
|
+
method: "POST",
|
|
18282
|
+
headers: headerParameters,
|
|
18283
|
+
query: queryParameters,
|
|
18284
|
+
body: V1MuseSubjectsSuggestPostRequestToJSON(requestParameters["v1MuseSubjectsSuggestPostRequest"])
|
|
18285
|
+
}, initOverrides);
|
|
18286
|
+
return new VoidApiResponse(response);
|
|
18287
|
+
}
|
|
18288
|
+
/**
|
|
18289
|
+
* Suggest 5 ranked subject-line candidates for a template
|
|
18290
|
+
*/
|
|
18291
|
+
async v1MuseSubjectsSuggestPost(v1MuseSubjectsSuggestPostRequest, initOverrides) {
|
|
18292
|
+
await this.v1MuseSubjectsSuggestPostRaw({ v1MuseSubjectsSuggestPostRequest }, initOverrides);
|
|
18293
|
+
}
|
|
18294
|
+
/**
|
|
18295
|
+
* Stream a draft template from a natural-language brief
|
|
18296
|
+
*/
|
|
18297
|
+
async v1MuseTemplatesDraftPostRaw(initOverrides) {
|
|
18298
|
+
const queryParameters = {};
|
|
18299
|
+
const headerParameters = {};
|
|
18300
|
+
const response = await this.request({
|
|
18301
|
+
path: `/v1/muse/templates/draft`,
|
|
18302
|
+
method: "POST",
|
|
18303
|
+
headers: headerParameters,
|
|
18304
|
+
query: queryParameters
|
|
18305
|
+
}, initOverrides);
|
|
18306
|
+
return new VoidApiResponse(response);
|
|
18307
|
+
}
|
|
18308
|
+
/**
|
|
18309
|
+
* Stream a draft template from a natural-language brief
|
|
18310
|
+
*/
|
|
18311
|
+
async v1MuseTemplatesDraftPost(initOverrides) {
|
|
18312
|
+
await this.v1MuseTemplatesDraftPostRaw(initOverrides);
|
|
18313
|
+
}
|
|
18314
|
+
/**
|
|
18315
|
+
* Stream a rewritten block per the user\'s instruction
|
|
18316
|
+
*/
|
|
18317
|
+
async v1MuseTemplatesRewritePostRaw(initOverrides) {
|
|
18318
|
+
const queryParameters = {};
|
|
18319
|
+
const headerParameters = {};
|
|
18320
|
+
const response = await this.request({
|
|
18321
|
+
path: `/v1/muse/templates/rewrite`,
|
|
18322
|
+
method: "POST",
|
|
18323
|
+
headers: headerParameters,
|
|
18324
|
+
query: queryParameters
|
|
18325
|
+
}, initOverrides);
|
|
18326
|
+
return new VoidApiResponse(response);
|
|
18327
|
+
}
|
|
18328
|
+
/**
|
|
18329
|
+
* Stream a rewritten block per the user\'s instruction
|
|
18330
|
+
*/
|
|
18331
|
+
async v1MuseTemplatesRewritePost(initOverrides) {
|
|
18332
|
+
await this.v1MuseTemplatesRewritePostRaw(initOverrides);
|
|
18333
|
+
}
|
|
18334
|
+
/**
|
|
18335
|
+
* Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
|
|
18336
|
+
* Per-account Zyphr Muse usage + budget tier
|
|
18337
|
+
*/
|
|
18338
|
+
async v1MuseUsageGetRaw(initOverrides) {
|
|
18339
|
+
const queryParameters = {};
|
|
18340
|
+
const headerParameters = {};
|
|
18341
|
+
const response = await this.request({
|
|
18342
|
+
path: `/v1/muse/usage`,
|
|
18343
|
+
method: "GET",
|
|
18344
|
+
headers: headerParameters,
|
|
18345
|
+
query: queryParameters
|
|
18346
|
+
}, initOverrides);
|
|
18347
|
+
return new VoidApiResponse(response);
|
|
18348
|
+
}
|
|
18349
|
+
/**
|
|
18350
|
+
* Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
|
|
18351
|
+
* Per-account Zyphr Muse usage + budget tier
|
|
18352
|
+
*/
|
|
18353
|
+
async v1MuseUsageGet(initOverrides) {
|
|
18354
|
+
await this.v1MuseUsageGetRaw(initOverrides);
|
|
18355
|
+
}
|
|
18356
|
+
/**
|
|
18357
|
+
* Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project\'s available_channels grounding; unsupported channels fall back to email via the prompt\'s hard rules.
|
|
18358
|
+
* Stream a generated workflow from a natural-language description
|
|
18359
|
+
*/
|
|
18360
|
+
async v1MuseWorkflowsGeneratePostRaw(initOverrides) {
|
|
18361
|
+
const queryParameters = {};
|
|
18362
|
+
const headerParameters = {};
|
|
18363
|
+
const response = await this.request({
|
|
18364
|
+
path: `/v1/muse/workflows/generate`,
|
|
18365
|
+
method: "POST",
|
|
18366
|
+
headers: headerParameters,
|
|
18367
|
+
query: queryParameters
|
|
18368
|
+
}, initOverrides);
|
|
18369
|
+
return new VoidApiResponse(response);
|
|
18370
|
+
}
|
|
18371
|
+
/**
|
|
18372
|
+
* Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project\'s available_channels grounding; unsupported channels fall back to email via the prompt\'s hard rules.
|
|
18373
|
+
* Stream a generated workflow from a natural-language description
|
|
18374
|
+
*/
|
|
18375
|
+
async v1MuseWorkflowsGeneratePost(initOverrides) {
|
|
18376
|
+
await this.v1MuseWorkflowsGeneratePostRaw(initOverrides);
|
|
18377
|
+
}
|
|
18378
|
+
};
|
|
18379
|
+
|
|
16612
18380
|
// src/src/apis/PushApi.ts
|
|
16613
18381
|
var PushApi = class extends BaseAPI {
|
|
16614
18382
|
/**
|
|
@@ -20651,6 +22419,9 @@ var Zyphr = class {
|
|
|
20651
22419
|
mfa: new AuthMFAApi(config),
|
|
20652
22420
|
magicLinks: new AuthMagicLinksApi(config),
|
|
20653
22421
|
oauth: new AuthOAuthApi(config),
|
|
22422
|
+
// sc-5594 / epic-5587 — Auth-as-a-Service Organizations (Pro/Enterprise).
|
|
22423
|
+
// Sub-tenant CRUD + membership + the active-org switch flow.
|
|
22424
|
+
organizations: new AuthOrganizationsApi(config),
|
|
20654
22425
|
phone: new AuthPhoneApi(config),
|
|
20655
22426
|
profile: new AuthUserProfileApi(config),
|
|
20656
22427
|
webauthn: new AuthWebAuthnApi(config)
|
|
@@ -20700,6 +22471,10 @@ export {
|
|
|
20700
22471
|
AddDomainRequestFromJSONTyped,
|
|
20701
22472
|
AddDomainRequestToJSON,
|
|
20702
22473
|
AddDomainRequestToJSONTyped,
|
|
22474
|
+
AddOrganizationMemberRequestFromJSON,
|
|
22475
|
+
AddOrganizationMemberRequestFromJSONTyped,
|
|
22476
|
+
AddOrganizationMemberRequestToJSON,
|
|
22477
|
+
AddOrganizationMemberRequestToJSONTyped,
|
|
20703
22478
|
AddTopicSubscribersRequestFromJSON,
|
|
20704
22479
|
AddTopicSubscribersRequestFromJSONTyped,
|
|
20705
22480
|
AddTopicSubscribersRequestToJSON,
|
|
@@ -20805,6 +22580,7 @@ export {
|
|
|
20805
22580
|
AuthMFAApi,
|
|
20806
22581
|
AuthMagicLinksApi,
|
|
20807
22582
|
AuthOAuthApi,
|
|
22583
|
+
AuthOrganizationsApi,
|
|
20808
22584
|
AuthPasswordResetApi,
|
|
20809
22585
|
AuthPhoneApi,
|
|
20810
22586
|
AuthRegistrationApi,
|
|
@@ -20944,6 +22720,10 @@ export {
|
|
|
20944
22720
|
CreateCategoryRequestFromJSONTyped,
|
|
20945
22721
|
CreateCategoryRequestToJSON,
|
|
20946
22722
|
CreateCategoryRequestToJSONTyped,
|
|
22723
|
+
CreateOrganizationRequestFromJSON,
|
|
22724
|
+
CreateOrganizationRequestFromJSONTyped,
|
|
22725
|
+
CreateOrganizationRequestToJSON,
|
|
22726
|
+
CreateOrganizationRequestToJSONTyped,
|
|
20947
22727
|
CreateSubscriberRequestFromJSON,
|
|
20948
22728
|
CreateSubscriberRequestFromJSONTyped,
|
|
20949
22729
|
CreateSubscriberRequestToJSON,
|
|
@@ -20989,6 +22769,14 @@ export {
|
|
|
20989
22769
|
CreateWebhookRequestToJSON,
|
|
20990
22770
|
CreateWebhookRequestToJSONTyped,
|
|
20991
22771
|
DefaultConfig,
|
|
22772
|
+
DeleteDomainResponseDataFromJSON,
|
|
22773
|
+
DeleteDomainResponseDataFromJSONTyped,
|
|
22774
|
+
DeleteDomainResponseDataToJSON,
|
|
22775
|
+
DeleteDomainResponseDataToJSONTyped,
|
|
22776
|
+
DeleteDomainResponseFromJSON,
|
|
22777
|
+
DeleteDomainResponseFromJSONTyped,
|
|
22778
|
+
DeleteDomainResponseToJSON,
|
|
22779
|
+
DeleteDomainResponseToJSONTyped,
|
|
20992
22780
|
DeleteResultDataFromJSON,
|
|
20993
22781
|
DeleteResultDataFromJSONTyped,
|
|
20994
22782
|
DeleteResultDataToJSON,
|
|
@@ -21047,6 +22835,8 @@ export {
|
|
|
21047
22835
|
DomainListResponseToJSONTyped,
|
|
21048
22836
|
DomainResponseFromJSON,
|
|
21049
22837
|
DomainResponseFromJSONTyped,
|
|
22838
|
+
DomainResponseSesDkimStatusEnum,
|
|
22839
|
+
DomainResponseSesIdentityStatusEnum,
|
|
21050
22840
|
DomainResponseStatusEnum,
|
|
21051
22841
|
DomainResponseToJSON,
|
|
21052
22842
|
DomainResponseToJSONTyped,
|
|
@@ -21154,6 +22944,14 @@ export {
|
|
|
21154
22944
|
GenerateWaaSPortalToken201ResponseFromJSONTyped,
|
|
21155
22945
|
GenerateWaaSPortalToken201ResponseToJSON,
|
|
21156
22946
|
GenerateWaaSPortalToken201ResponseToJSONTyped,
|
|
22947
|
+
GetDomain200ResponseFromJSON,
|
|
22948
|
+
GetDomain200ResponseFromJSONTyped,
|
|
22949
|
+
GetDomain200ResponseMetaFromJSON,
|
|
22950
|
+
GetDomain200ResponseMetaFromJSONTyped,
|
|
22951
|
+
GetDomain200ResponseMetaToJSON,
|
|
22952
|
+
GetDomain200ResponseMetaToJSONTyped,
|
|
22953
|
+
GetDomain200ResponseToJSON,
|
|
22954
|
+
GetDomain200ResponseToJSONTyped,
|
|
21157
22955
|
GetWaaSEndpoint200ResponseFromJSON,
|
|
21158
22956
|
GetWaaSEndpoint200ResponseFromJSONTyped,
|
|
21159
22957
|
GetWaaSEndpoint200ResponseToJSON,
|
|
@@ -21322,6 +23120,7 @@ export {
|
|
|
21322
23120
|
MfaVerifyRequestFromJSONTyped,
|
|
21323
23121
|
MfaVerifyRequestToJSON,
|
|
21324
23122
|
MfaVerifyRequestToJSONTyped,
|
|
23123
|
+
MuseApi,
|
|
21325
23124
|
OAuthAuthorizationUrlResponseDataFromJSON,
|
|
21326
23125
|
OAuthAuthorizationUrlResponseDataFromJSONTyped,
|
|
21327
23126
|
OAuthAuthorizationUrlResponseDataToJSON,
|
|
@@ -21394,6 +23193,38 @@ export {
|
|
|
21394
23193
|
OAuthTokensResponseFromJSONTyped,
|
|
21395
23194
|
OAuthTokensResponseToJSON,
|
|
21396
23195
|
OAuthTokensResponseToJSONTyped,
|
|
23196
|
+
OrganizationFromJSON,
|
|
23197
|
+
OrganizationFromJSONTyped,
|
|
23198
|
+
OrganizationListResponseFromJSON,
|
|
23199
|
+
OrganizationListResponseFromJSONTyped,
|
|
23200
|
+
OrganizationListResponseMetaFromJSON,
|
|
23201
|
+
OrganizationListResponseMetaFromJSONTyped,
|
|
23202
|
+
OrganizationListResponseMetaToJSON,
|
|
23203
|
+
OrganizationListResponseMetaToJSONTyped,
|
|
23204
|
+
OrganizationListResponseToJSON,
|
|
23205
|
+
OrganizationListResponseToJSONTyped,
|
|
23206
|
+
OrganizationMembersListResponseFromJSON,
|
|
23207
|
+
OrganizationMembersListResponseFromJSONTyped,
|
|
23208
|
+
OrganizationMembersListResponseToJSON,
|
|
23209
|
+
OrganizationMembersListResponseToJSONTyped,
|
|
23210
|
+
OrganizationMembershipFromJSON,
|
|
23211
|
+
OrganizationMembershipFromJSONTyped,
|
|
23212
|
+
OrganizationMembershipResponseFromJSON,
|
|
23213
|
+
OrganizationMembershipResponseFromJSONTyped,
|
|
23214
|
+
OrganizationMembershipResponseToJSON,
|
|
23215
|
+
OrganizationMembershipResponseToJSONTyped,
|
|
23216
|
+
OrganizationMembershipToJSON,
|
|
23217
|
+
OrganizationMembershipToJSONTyped,
|
|
23218
|
+
OrganizationMembershipWithUserFromJSON,
|
|
23219
|
+
OrganizationMembershipWithUserFromJSONTyped,
|
|
23220
|
+
OrganizationMembershipWithUserToJSON,
|
|
23221
|
+
OrganizationMembershipWithUserToJSONTyped,
|
|
23222
|
+
OrganizationResponseFromJSON,
|
|
23223
|
+
OrganizationResponseFromJSONTyped,
|
|
23224
|
+
OrganizationResponseToJSON,
|
|
23225
|
+
OrganizationResponseToJSONTyped,
|
|
23226
|
+
OrganizationToJSON,
|
|
23227
|
+
OrganizationToJSONTyped,
|
|
21397
23228
|
PaginationMetaFromJSON,
|
|
21398
23229
|
PaginationMetaFromJSONTyped,
|
|
21399
23230
|
PaginationMetaToJSON,
|
|
@@ -21864,6 +23695,27 @@ export {
|
|
|
21864
23695
|
SuccessResultFromJSONTyped,
|
|
21865
23696
|
SuccessResultToJSON,
|
|
21866
23697
|
SuccessResultToJSONTyped,
|
|
23698
|
+
SwitchOrganizationRequestFromJSON,
|
|
23699
|
+
SwitchOrganizationRequestFromJSONTyped,
|
|
23700
|
+
SwitchOrganizationRequestToJSON,
|
|
23701
|
+
SwitchOrganizationRequestToJSONTyped,
|
|
23702
|
+
SwitchOrganizationResponseDataFromJSON,
|
|
23703
|
+
SwitchOrganizationResponseDataFromJSONTyped,
|
|
23704
|
+
SwitchOrganizationResponseDataToJSON,
|
|
23705
|
+
SwitchOrganizationResponseDataToJSONTyped,
|
|
23706
|
+
SwitchOrganizationResponseDataTokensFromJSON,
|
|
23707
|
+
SwitchOrganizationResponseDataTokensFromJSONTyped,
|
|
23708
|
+
SwitchOrganizationResponseDataTokensToJSON,
|
|
23709
|
+
SwitchOrganizationResponseDataTokensToJSONTyped,
|
|
23710
|
+
SwitchOrganizationResponseDataTokensTokenTypeEnum,
|
|
23711
|
+
SwitchOrganizationResponseDataUserFromJSON,
|
|
23712
|
+
SwitchOrganizationResponseDataUserFromJSONTyped,
|
|
23713
|
+
SwitchOrganizationResponseDataUserToJSON,
|
|
23714
|
+
SwitchOrganizationResponseDataUserToJSONTyped,
|
|
23715
|
+
SwitchOrganizationResponseFromJSON,
|
|
23716
|
+
SwitchOrganizationResponseFromJSONTyped,
|
|
23717
|
+
SwitchOrganizationResponseToJSON,
|
|
23718
|
+
SwitchOrganizationResponseToJSONTyped,
|
|
21867
23719
|
TemplateFromJSON,
|
|
21868
23720
|
TemplateFromJSONTyped,
|
|
21869
23721
|
TemplateListResponseFromJSON,
|
|
@@ -21981,6 +23833,14 @@ export {
|
|
|
21981
23833
|
UpdateEndUserRequestFromJSONTyped,
|
|
21982
23834
|
UpdateEndUserRequestToJSON,
|
|
21983
23835
|
UpdateEndUserRequestToJSONTyped,
|
|
23836
|
+
UpdateOrganizationMemberRoleRequestFromJSON,
|
|
23837
|
+
UpdateOrganizationMemberRoleRequestFromJSONTyped,
|
|
23838
|
+
UpdateOrganizationMemberRoleRequestToJSON,
|
|
23839
|
+
UpdateOrganizationMemberRoleRequestToJSONTyped,
|
|
23840
|
+
UpdateOrganizationRequestFromJSON,
|
|
23841
|
+
UpdateOrganizationRequestFromJSONTyped,
|
|
23842
|
+
UpdateOrganizationRequestToJSON,
|
|
23843
|
+
UpdateOrganizationRequestToJSONTyped,
|
|
21984
23844
|
UpdateSubscriberPreferencesRequestFromJSON,
|
|
21985
23845
|
UpdateSubscriberPreferencesRequestFromJSONTyped,
|
|
21986
23846
|
UpdateSubscriberPreferencesRequestPreferencesInnerChannelEnum,
|
|
@@ -22039,6 +23899,11 @@ export {
|
|
|
22039
23899
|
UserDevicesDeleteResponseToJSON,
|
|
22040
23900
|
UserDevicesDeleteResponseToJSONTyped,
|
|
22041
23901
|
UtilityApi,
|
|
23902
|
+
V1MuseSubjectsSuggestPostRequestChannelEnum,
|
|
23903
|
+
V1MuseSubjectsSuggestPostRequestFromJSON,
|
|
23904
|
+
V1MuseSubjectsSuggestPostRequestFromJSONTyped,
|
|
23905
|
+
V1MuseSubjectsSuggestPostRequestToJSON,
|
|
23906
|
+
V1MuseSubjectsSuggestPostRequestToJSONTyped,
|
|
22042
23907
|
ValidateResetTokenRequestFromJSON,
|
|
22043
23908
|
ValidateResetTokenRequestFromJSONTyped,
|
|
22044
23909
|
ValidateResetTokenRequestToJSON,
|
|
@@ -22051,6 +23916,24 @@ export {
|
|
|
22051
23916
|
ValidateResetTokenResponseFromJSONTyped,
|
|
22052
23917
|
ValidateResetTokenResponseToJSON,
|
|
22053
23918
|
ValidateResetTokenResponseToJSONTyped,
|
|
23919
|
+
VerificationStatusResponseDataFromJSON,
|
|
23920
|
+
VerificationStatusResponseDataFromJSONTyped,
|
|
23921
|
+
VerificationStatusResponseDataStatusEnum,
|
|
23922
|
+
VerificationStatusResponseDataToJSON,
|
|
23923
|
+
VerificationStatusResponseDataToJSONTyped,
|
|
23924
|
+
VerificationStatusResponseFromJSON,
|
|
23925
|
+
VerificationStatusResponseFromJSONTyped,
|
|
23926
|
+
VerificationStatusResponseToJSON,
|
|
23927
|
+
VerificationStatusResponseToJSONTyped,
|
|
23928
|
+
VerifyDomainResponseDataFromJSON,
|
|
23929
|
+
VerifyDomainResponseDataFromJSONTyped,
|
|
23930
|
+
VerifyDomainResponseDataStatusEnum,
|
|
23931
|
+
VerifyDomainResponseDataToJSON,
|
|
23932
|
+
VerifyDomainResponseDataToJSONTyped,
|
|
23933
|
+
VerifyDomainResponseFromJSON,
|
|
23934
|
+
VerifyDomainResponseFromJSONTyped,
|
|
23935
|
+
VerifyDomainResponseToJSON,
|
|
23936
|
+
VerifyDomainResponseToJSONTyped,
|
|
22054
23937
|
VerifySmsConfigDataFromJSON,
|
|
22055
23938
|
VerifySmsConfigDataFromJSONTyped,
|
|
22056
23939
|
VerifySmsConfigDataToJSON,
|
|
@@ -22366,6 +24249,7 @@ export {
|
|
|
22366
24249
|
instanceOfAddDomain200Response,
|
|
22367
24250
|
instanceOfAddDomain200ResponseMeta,
|
|
22368
24251
|
instanceOfAddDomainRequest,
|
|
24252
|
+
instanceOfAddOrganizationMemberRequest,
|
|
22369
24253
|
instanceOfAddTopicSubscribersRequest,
|
|
22370
24254
|
instanceOfApiError,
|
|
22371
24255
|
instanceOfApiErrorError,
|
|
@@ -22420,6 +24304,7 @@ export {
|
|
|
22420
24304
|
instanceOfConvertAnonymousUserRequestOneOf1AppleUser,
|
|
22421
24305
|
instanceOfConvertAnonymousUserRequestOneOf1AppleUserName,
|
|
22422
24306
|
instanceOfCreateCategoryRequest,
|
|
24307
|
+
instanceOfCreateOrganizationRequest,
|
|
22423
24308
|
instanceOfCreateSubscriberRequest,
|
|
22424
24309
|
instanceOfCreateTemplateRequest,
|
|
22425
24310
|
instanceOfCreateTopicRequest,
|
|
@@ -22431,6 +24316,8 @@ export {
|
|
|
22431
24316
|
instanceOfCreateWaaSEventType201Response,
|
|
22432
24317
|
instanceOfCreateWaaSEventTypeRequest,
|
|
22433
24318
|
instanceOfCreateWebhookRequest,
|
|
24319
|
+
instanceOfDeleteDomainResponse,
|
|
24320
|
+
instanceOfDeleteDomainResponseData,
|
|
22434
24321
|
instanceOfDeleteResult,
|
|
22435
24322
|
instanceOfDeleteResultData,
|
|
22436
24323
|
instanceOfDevice,
|
|
@@ -22469,6 +24356,8 @@ export {
|
|
|
22469
24356
|
instanceOfGenerateSubscriberToken200ResponseData,
|
|
22470
24357
|
instanceOfGenerateSubscriberTokenRequest,
|
|
22471
24358
|
instanceOfGenerateWaaSPortalToken201Response,
|
|
24359
|
+
instanceOfGetDomain200Response,
|
|
24360
|
+
instanceOfGetDomain200ResponseMeta,
|
|
22472
24361
|
instanceOfGetWaaSEndpoint200Response,
|
|
22473
24362
|
instanceOfGetWaaSUsage200Response,
|
|
22474
24363
|
instanceOfInAppNotification,
|
|
@@ -22525,6 +24414,14 @@ export {
|
|
|
22525
24414
|
instanceOfOAuthTokensRefreshResponseData,
|
|
22526
24415
|
instanceOfOAuthTokensResponse,
|
|
22527
24416
|
instanceOfOAuthTokensResponseData,
|
|
24417
|
+
instanceOfOrganization,
|
|
24418
|
+
instanceOfOrganizationListResponse,
|
|
24419
|
+
instanceOfOrganizationListResponseMeta,
|
|
24420
|
+
instanceOfOrganizationMembersListResponse,
|
|
24421
|
+
instanceOfOrganizationMembership,
|
|
24422
|
+
instanceOfOrganizationMembershipResponse,
|
|
24423
|
+
instanceOfOrganizationMembershipWithUser,
|
|
24424
|
+
instanceOfOrganizationResponse,
|
|
22528
24425
|
instanceOfPaginationMeta,
|
|
22529
24426
|
instanceOfPasswordRequirements,
|
|
22530
24427
|
instanceOfPasswordRequirementsResponse,
|
|
@@ -22637,6 +24534,11 @@ export {
|
|
|
22637
24534
|
instanceOfSubscriberPreference,
|
|
22638
24535
|
instanceOfSubscriberResponse,
|
|
22639
24536
|
instanceOfSuccessResult,
|
|
24537
|
+
instanceOfSwitchOrganizationRequest,
|
|
24538
|
+
instanceOfSwitchOrganizationResponse,
|
|
24539
|
+
instanceOfSwitchOrganizationResponseData,
|
|
24540
|
+
instanceOfSwitchOrganizationResponseDataTokens,
|
|
24541
|
+
instanceOfSwitchOrganizationResponseDataUser,
|
|
22640
24542
|
instanceOfTemplate,
|
|
22641
24543
|
instanceOfTemplateListResponse,
|
|
22642
24544
|
instanceOfTemplateRenderResponse,
|
|
@@ -22665,6 +24567,8 @@ export {
|
|
|
22665
24567
|
instanceOfUnsubscribeResponse,
|
|
22666
24568
|
instanceOfUpdateCategoryRequest,
|
|
22667
24569
|
instanceOfUpdateEndUserRequest,
|
|
24570
|
+
instanceOfUpdateOrganizationMemberRoleRequest,
|
|
24571
|
+
instanceOfUpdateOrganizationRequest,
|
|
22668
24572
|
instanceOfUpdateSubscriberPreferencesRequest,
|
|
22669
24573
|
instanceOfUpdateSubscriberPreferencesRequestPreferencesInner,
|
|
22670
24574
|
instanceOfUpdateSubscriberRequest,
|
|
@@ -22678,9 +24582,14 @@ export {
|
|
|
22678
24582
|
instanceOfUpsertSmsConfigRequest,
|
|
22679
24583
|
instanceOfUserDevicesDeleteResponse,
|
|
22680
24584
|
instanceOfUserDevicesDeleteResponseData,
|
|
24585
|
+
instanceOfV1MuseSubjectsSuggestPostRequest,
|
|
22681
24586
|
instanceOfValidateResetTokenRequest,
|
|
22682
24587
|
instanceOfValidateResetTokenResponse,
|
|
22683
24588
|
instanceOfValidateResetTokenResponseData,
|
|
24589
|
+
instanceOfVerificationStatusResponse,
|
|
24590
|
+
instanceOfVerificationStatusResponseData,
|
|
24591
|
+
instanceOfVerifyDomainResponse,
|
|
24592
|
+
instanceOfVerifyDomainResponseData,
|
|
22684
24593
|
instanceOfVerifySmsConfigData,
|
|
22685
24594
|
instanceOfVerifySmsConfigResponse,
|
|
22686
24595
|
instanceOfWaaSApplication,
|