@spoketech/hub-client 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.d.ts +2502 -656
- package/dist/index.js +139 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ var memberPreferredContactMethods = ["sms", "email"];
|
|
|
23
23
|
var memberCreatedOrigins = [
|
|
24
24
|
"hub_admin",
|
|
25
25
|
"service_api",
|
|
26
|
+
"seed",
|
|
26
27
|
"source_sync",
|
|
27
28
|
"source_create"
|
|
28
29
|
];
|
|
@@ -521,6 +522,14 @@ var UpsertMemberPointBalanceSchema = Schema2.Struct({
|
|
|
521
522
|
example: 1200
|
|
522
523
|
})
|
|
523
524
|
});
|
|
525
|
+
var SourceMembershipObservationFields = {
|
|
526
|
+
sourceStatus: NullableString.annotations({
|
|
527
|
+
description: "Latest normalized lifecycle status confirmed by the Member Source."
|
|
528
|
+
}),
|
|
529
|
+
sourceStatusObservedAt: Schema2.Union(TimestampSchema, Schema2.Null).annotations({
|
|
530
|
+
description: "Time Spoke Hub last observed a non-empty Source Membership Status."
|
|
531
|
+
})
|
|
532
|
+
};
|
|
524
533
|
var MemberSchema = Schema2.Struct({
|
|
525
534
|
id: Schema2.String,
|
|
526
535
|
organizationId: Schema2.String,
|
|
@@ -532,9 +541,13 @@ var MemberSchema = Schema2.Struct({
|
|
|
532
541
|
recordMode: Schema2.Literal(...memberRecordModes),
|
|
533
542
|
createdOrigin: Schema2.Literal(...memberCreatedOrigins),
|
|
534
543
|
createdOriginName: NullableString,
|
|
544
|
+
seedBatchId: NullableString.annotations({
|
|
545
|
+
description: "Seed batch identifier when this member was generated by an admin seed operation."
|
|
546
|
+
}),
|
|
535
547
|
archivedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
536
548
|
joinedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
537
549
|
sourceUpdatedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
550
|
+
...SourceMembershipObservationFields,
|
|
538
551
|
email: NullableString,
|
|
539
552
|
title: NullableString,
|
|
540
553
|
firstName: Schema2.String,
|
|
@@ -589,6 +602,7 @@ var MemberMedSchema = Schema2.Struct({
|
|
|
589
602
|
organizationId: Schema2.String,
|
|
590
603
|
status: Schema2.Literal(...memberComputedStatuses),
|
|
591
604
|
isSuspended: Schema2.Boolean,
|
|
605
|
+
...SourceMembershipObservationFields,
|
|
592
606
|
displayName: Schema2.String,
|
|
593
607
|
dob: Schema2.Union(DateOnlySchema, Schema2.Null),
|
|
594
608
|
email: NullableString,
|
|
@@ -614,6 +628,7 @@ var MemberBasicSchema = Schema2.Struct({
|
|
|
614
628
|
id: Schema2.String,
|
|
615
629
|
displayName: Schema2.String,
|
|
616
630
|
dob: Schema2.Union(DateOnlySchema, Schema2.Null),
|
|
631
|
+
...SourceMembershipObservationFields,
|
|
617
632
|
statusCredits: Schema2.Number,
|
|
618
633
|
memberNumber: NullableString
|
|
619
634
|
});
|
|
@@ -626,9 +641,11 @@ var MemberFullResponseSchema = Schema2.Struct({
|
|
|
626
641
|
recordMode: Schema2.Literal(...memberRecordModes),
|
|
627
642
|
createdOrigin: Schema2.Literal(...memberCreatedOrigins),
|
|
628
643
|
createdOriginName: NullableString,
|
|
644
|
+
seedBatchId: NullableString,
|
|
629
645
|
archivedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
630
646
|
joinedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
631
647
|
sourceUpdatedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
648
|
+
...SourceMembershipObservationFields,
|
|
632
649
|
email: NullableString,
|
|
633
650
|
title: NullableString,
|
|
634
651
|
firstName: Schema2.String,
|
|
@@ -670,6 +687,7 @@ var MemberMedResponseSchema = Schema2.Struct({
|
|
|
670
687
|
organizationId: Schema2.String,
|
|
671
688
|
status: Schema2.Literal(...memberComputedStatuses),
|
|
672
689
|
isSuspended: Schema2.Boolean,
|
|
690
|
+
...SourceMembershipObservationFields,
|
|
673
691
|
displayName: Schema2.String,
|
|
674
692
|
dob: Schema2.Union(DateOnlySchema, Schema2.Null),
|
|
675
693
|
email: NullableString,
|
|
@@ -696,6 +714,7 @@ var MemberBasicResponseSchema = Schema2.Struct({
|
|
|
696
714
|
id: Schema2.String,
|
|
697
715
|
displayName: Schema2.String,
|
|
698
716
|
dob: Schema2.Union(DateOnlySchema, Schema2.Null),
|
|
717
|
+
...SourceMembershipObservationFields,
|
|
699
718
|
statusCredits: Schema2.Number,
|
|
700
719
|
memberNumber: NullableString,
|
|
701
720
|
responseMode: Schema2.Literal("basic")
|
|
@@ -779,7 +798,7 @@ var OrganizationMembersListUrlParamsSchema = Schema2.Struct({
|
|
|
779
798
|
),
|
|
780
799
|
searchValue: Schema2.optional(
|
|
781
800
|
Schema2.String.annotations({
|
|
782
|
-
description: "
|
|
801
|
+
description: "Partial match used with searchField to filter members. Display-name searches match every whitespace-separated term in any order."
|
|
783
802
|
})
|
|
784
803
|
),
|
|
785
804
|
name: Schema2.optional(
|
|
@@ -1066,6 +1085,8 @@ var organizationMembersListExamples = {
|
|
|
1066
1085
|
createdOriginName: "Odyssey Gaming",
|
|
1067
1086
|
archivedAt: null,
|
|
1068
1087
|
sourceUpdatedAt: "2026-04-02T01:23:45.000Z",
|
|
1088
|
+
sourceStatus: "ACTIVE",
|
|
1089
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1069
1090
|
email: "jane@example.com",
|
|
1070
1091
|
title: "Ms",
|
|
1071
1092
|
firstName: "Jane",
|
|
@@ -1136,6 +1157,8 @@ var organizationMembersListExamples = {
|
|
|
1136
1157
|
organizationId: "org_1",
|
|
1137
1158
|
status: "active",
|
|
1138
1159
|
isSuspended: false,
|
|
1160
|
+
sourceStatus: "ACTIVE",
|
|
1161
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1139
1162
|
displayName: "Jane Smith",
|
|
1140
1163
|
dob: "1988-06-14",
|
|
1141
1164
|
email: "jane@example.com",
|
|
@@ -1180,6 +1203,8 @@ var organizationMembersListExamples = {
|
|
|
1180
1203
|
id: "mem_123",
|
|
1181
1204
|
displayName: "Jane Smith",
|
|
1182
1205
|
dob: "1988-06-14",
|
|
1206
|
+
sourceStatus: "ACTIVE",
|
|
1207
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1183
1208
|
memberNumber: "12345"
|
|
1184
1209
|
}
|
|
1185
1210
|
],
|
|
@@ -1232,6 +1257,8 @@ var memberExamples = {
|
|
|
1232
1257
|
createdOriginName: "Odyssey Gaming",
|
|
1233
1258
|
archivedAt: null,
|
|
1234
1259
|
sourceUpdatedAt: "2026-04-02T01:23:45.000Z",
|
|
1260
|
+
sourceStatus: "ACTIVE",
|
|
1261
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1235
1262
|
email: "jane@example.com",
|
|
1236
1263
|
title: "Ms",
|
|
1237
1264
|
firstName: "Jane",
|
|
@@ -1290,6 +1317,8 @@ var memberExamples = {
|
|
|
1290
1317
|
organizationId: "org_1",
|
|
1291
1318
|
status: "active",
|
|
1292
1319
|
isSuspended: false,
|
|
1320
|
+
sourceStatus: "ACTIVE",
|
|
1321
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1293
1322
|
displayName: "Jane Smith",
|
|
1294
1323
|
dob: "1988-06-14",
|
|
1295
1324
|
email: "jane@example.com",
|
|
@@ -1322,6 +1351,8 @@ var memberExamples = {
|
|
|
1322
1351
|
id: "mem_123",
|
|
1323
1352
|
displayName: "Jane Smith",
|
|
1324
1353
|
dob: "1988-06-14",
|
|
1354
|
+
sourceStatus: "ACTIVE",
|
|
1355
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1325
1356
|
memberNumber: "12345",
|
|
1326
1357
|
responseMode: "basic"
|
|
1327
1358
|
}
|
|
@@ -1349,6 +1380,8 @@ var bulkMemberExamples = {
|
|
|
1349
1380
|
organizationId: "org_1",
|
|
1350
1381
|
status: "active",
|
|
1351
1382
|
isSuspended: false,
|
|
1383
|
+
sourceStatus: "ACTIVE",
|
|
1384
|
+
sourceStatusObservedAt: "2026-04-02T01:25:00.000Z",
|
|
1352
1385
|
displayName: "Jane Smith",
|
|
1353
1386
|
dob: "1988-06-14",
|
|
1354
1387
|
email: "jane@example.com",
|
|
@@ -1378,6 +1411,8 @@ var bulkMemberExamples = {
|
|
|
1378
1411
|
organizationId: "org_1",
|
|
1379
1412
|
status: "expired",
|
|
1380
1413
|
isSuspended: false,
|
|
1414
|
+
sourceStatus: null,
|
|
1415
|
+
sourceStatusObservedAt: null,
|
|
1381
1416
|
displayName: "Howard Sorrell",
|
|
1382
1417
|
dob: "1967-05-09",
|
|
1383
1418
|
email: null,
|
|
@@ -1755,6 +1790,8 @@ var createMemberExamplesTransform = withOpenApiExamples({
|
|
|
1755
1790
|
createdOriginName: null,
|
|
1756
1791
|
archivedAt: null,
|
|
1757
1792
|
sourceUpdatedAt: null,
|
|
1793
|
+
sourceStatus: null,
|
|
1794
|
+
sourceStatusObservedAt: null,
|
|
1758
1795
|
email: "jane@example.com",
|
|
1759
1796
|
title: "Ms",
|
|
1760
1797
|
firstName: "Jane",
|
|
@@ -1839,6 +1876,8 @@ var updateMemberExamplesTransform = withOpenApiExamples({
|
|
|
1839
1876
|
createdOriginName: null,
|
|
1840
1877
|
archivedAt: null,
|
|
1841
1878
|
sourceUpdatedAt: null,
|
|
1879
|
+
sourceStatus: null,
|
|
1880
|
+
sourceStatusObservedAt: null,
|
|
1842
1881
|
email: "jane@example.com",
|
|
1843
1882
|
title: "Ms",
|
|
1844
1883
|
firstName: "Jane",
|
|
@@ -2657,6 +2696,15 @@ var CreateOrganizationSchema = Schema2.Struct({
|
|
|
2657
2696
|
description: "Number of days after membership expiry that members are still counted as active.",
|
|
2658
2697
|
example: 7
|
|
2659
2698
|
})
|
|
2699
|
+
),
|
|
2700
|
+
demo: Schema2.optional(
|
|
2701
|
+
Schema2.Struct({
|
|
2702
|
+
apiClient: Schema2.Literal("odyssey_nexus"),
|
|
2703
|
+
randomFailuresEnabled: Schema2.optional(Schema2.Boolean),
|
|
2704
|
+
timeZone: Schema2.optional(Schema2.String),
|
|
2705
|
+
minLatencyMs: Schema2.optional(Schema2.Number),
|
|
2706
|
+
maxLatencyMs: Schema2.optional(Schema2.Number)
|
|
2707
|
+
})
|
|
2660
2708
|
)
|
|
2661
2709
|
});
|
|
2662
2710
|
var UpdateOrganizationSchema = Schema2.Struct({
|
|
@@ -2738,6 +2786,19 @@ var CreateMemberSchema = Schema2.Struct({
|
|
|
2738
2786
|
cardId: OptionalNullableString,
|
|
2739
2787
|
customFields: Schema2.optional(JsonObjectSchema)
|
|
2740
2788
|
});
|
|
2789
|
+
var SeedOrganizationMembersSchema = Schema2.Struct({
|
|
2790
|
+
amount: Schema2.Number.annotations({
|
|
2791
|
+
description: "Number of synthetic members to create. Must be an integer between 1 and 1000.",
|
|
2792
|
+
example: 100
|
|
2793
|
+
})
|
|
2794
|
+
});
|
|
2795
|
+
var MemberSeedBatchSchema = Schema2.Struct({
|
|
2796
|
+
id: Schema2.String,
|
|
2797
|
+
organizationId: Schema2.String,
|
|
2798
|
+
amount: Schema2.Number,
|
|
2799
|
+
memberIds: Schema2.Array(Schema2.String),
|
|
2800
|
+
createdAt: TimestampSchema
|
|
2801
|
+
});
|
|
2741
2802
|
var UpdateMemberSchema = Schema2.Struct({
|
|
2742
2803
|
expectedUpdatedAt: TimestampSchema,
|
|
2743
2804
|
email: OptionalNullableString,
|
|
@@ -2838,6 +2899,14 @@ var UpsertOrganizationMemberSourceSchema = Schema2.Struct({
|
|
|
2838
2899
|
config: JsonObjectSchema,
|
|
2839
2900
|
secrets: Schema2.optional(Schema2.Array(OrganizationMemberSourceSecretInputSchema))
|
|
2840
2901
|
});
|
|
2902
|
+
var ConvertOrganizationToDemoSchema = Schema2.Struct({
|
|
2903
|
+
apiClient: Schema2.Literal("odyssey_nexus"),
|
|
2904
|
+
randomFailuresEnabled: Schema2.optional(Schema2.Boolean),
|
|
2905
|
+
failureRate: Schema2.optional(Schema2.Number),
|
|
2906
|
+
timeZone: Schema2.optional(Schema2.String),
|
|
2907
|
+
minLatencyMs: Schema2.optional(Schema2.Number),
|
|
2908
|
+
maxLatencyMs: Schema2.optional(Schema2.Number)
|
|
2909
|
+
});
|
|
2841
2910
|
var UpsertOrganizationMemberSourceWebhookSchema = Schema2.Struct({
|
|
2842
2911
|
url: Schema2.String.annotations({
|
|
2843
2912
|
description: "Destination URL to notify when source-managed create, update, renewal, or lookup commands reach a terminal state.",
|
|
@@ -2882,6 +2951,7 @@ var SourceManagedMemberRenewalCommandPayloadSchema = Schema2.Struct({
|
|
|
2882
2951
|
var SourceManagedMemberPreferenceUpdateCommandPayloadSchema = Schema2.Struct({
|
|
2883
2952
|
memberId: Schema2.String,
|
|
2884
2953
|
externalSystemMemberId: Schema2.String,
|
|
2954
|
+
sourceSiteId: OptionalNullableString,
|
|
2885
2955
|
expectedUpdatedAt: TimestampSchema,
|
|
2886
2956
|
marketingPreferences: MarketingPreferencesInputSchema
|
|
2887
2957
|
});
|
|
@@ -3057,6 +3127,17 @@ var ImportedMemberRecordSchema = Schema2.Struct({
|
|
|
3057
3127
|
expiresAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
3058
3128
|
sourceUpdatedAt: Schema2.Union(TimestampSchema, Schema2.Null)
|
|
3059
3129
|
});
|
|
3130
|
+
var SourceContactPreferenceSchema = Schema2.Struct({
|
|
3131
|
+
externalSystemMemberId: Schema2.String,
|
|
3132
|
+
siteId: Schema2.String,
|
|
3133
|
+
email: Schema2.Boolean,
|
|
3134
|
+
sms: Schema2.Boolean,
|
|
3135
|
+
post: Schema2.Boolean,
|
|
3136
|
+
isDefaultSite: Schema2.optional(Schema2.Boolean),
|
|
3137
|
+
sourceCreatedAt: Schema2.optional(Schema2.Union(TimestampSchema, Schema2.Null)),
|
|
3138
|
+
sourceUpdatedAt: Schema2.optional(Schema2.Union(TimestampSchema, Schema2.Null)),
|
|
3139
|
+
metadata: Schema2.optional(JsonObjectSchema)
|
|
3140
|
+
});
|
|
3060
3141
|
var OnsiteAgentCommandSchema = Schema2.Struct({
|
|
3061
3142
|
runId: Schema2.String,
|
|
3062
3143
|
organizationId: Schema2.String,
|
|
@@ -3183,17 +3264,26 @@ var OnsiteAgentCompleteRunErrorSchema = Schema2.Struct({
|
|
|
3183
3264
|
});
|
|
3184
3265
|
var OnsiteAgentCompleteRunSchema = Schema2.Struct({
|
|
3185
3266
|
records: Schema2.Array(ImportedMemberRecordSchema),
|
|
3267
|
+
contactPreferences: Schema2.optional(Schema2.Array(SourceContactPreferenceSchema)),
|
|
3186
3268
|
cursorAfter: Schema2.optional(Schema2.Union(JsonObjectSchema, Schema2.Null)),
|
|
3187
3269
|
rowErrors: Schema2.optional(Schema2.Array(OnsiteAgentCompleteRunErrorSchema)),
|
|
3188
3270
|
csvImportUploaded: Schema2.optional(Schema2.Boolean),
|
|
3189
3271
|
errorMessage: OptionalNullableString
|
|
3190
3272
|
});
|
|
3273
|
+
var OnsiteAgentMemberCreationResultSchema = Schema2.Literal(
|
|
3274
|
+
"created",
|
|
3275
|
+
"recovered_create",
|
|
3276
|
+
"matched_existing"
|
|
3277
|
+
);
|
|
3191
3278
|
var OnsiteAgentCompleteMemberCreateSchema = Schema2.Struct({
|
|
3192
3279
|
record: Schema2.optional(ImportedMemberRecordSchema),
|
|
3280
|
+
contactPreferences: Schema2.optional(Schema2.Array(SourceContactPreferenceSchema)),
|
|
3281
|
+
creationResult: Schema2.optional(OnsiteAgentMemberCreationResultSchema),
|
|
3193
3282
|
errorMessage: OptionalNullableString
|
|
3194
3283
|
});
|
|
3195
3284
|
var OnsiteAgentCompleteMemberUpdateSchema = Schema2.Struct({
|
|
3196
3285
|
record: Schema2.optional(ImportedMemberRecordSchema),
|
|
3286
|
+
contactPreferences: Schema2.optional(Schema2.Array(SourceContactPreferenceSchema)),
|
|
3197
3287
|
errorMessage: OptionalNullableString
|
|
3198
3288
|
});
|
|
3199
3289
|
var OnsiteAgentCompleteMemberRenewalSchema = Schema2.Struct({
|
|
@@ -3226,6 +3316,15 @@ var OrganizationProductOptionParams = Schema2.Struct({
|
|
|
3226
3316
|
var OrganizationProductWebhookParams = Schema2.Struct({
|
|
3227
3317
|
organizationProductWebhookId: HttpApiSchema2.param("organizationProductWebhookId", Schema2.String)
|
|
3228
3318
|
});
|
|
3319
|
+
var OrganizationProductWebhookOperationParams = Schema2.Struct({
|
|
3320
|
+
organizationProductOptionId: HttpApiSchema2.param("organizationProductOptionId", Schema2.String),
|
|
3321
|
+
idempotencyKey: HttpApiSchema2.param("idempotencyKey", Schema2.String)
|
|
3322
|
+
});
|
|
3323
|
+
var RequiredWebhookOperationHeaders = Schema2.Struct({
|
|
3324
|
+
"idempotency-key": Schema2.String.annotations({
|
|
3325
|
+
description: "Requester-scoped operation key used to replay or recover the original one-time-secret response."
|
|
3326
|
+
})
|
|
3327
|
+
});
|
|
3229
3328
|
var OrganizationMemberSourceCommandParams = Schema2.Struct({
|
|
3230
3329
|
organizationId: HttpApiSchema2.param("organizationId", Schema2.String),
|
|
3231
3330
|
commandId: HttpApiSchema2.param("commandId", Schema2.String)
|
|
@@ -3312,7 +3411,7 @@ var organizationsGroup = HttpApiGroup.make("organizations").add(
|
|
|
3312
3411
|
HttpApiEndpoint.post(
|
|
3313
3412
|
"createOrganizationProductWebhook",
|
|
3314
3413
|
"/organization-products/:organizationProductOptionId/webhooks"
|
|
3315
|
-
).setPath(OrganizationProductOptionParams).setPayload(CreateOrganizationProductWebhookSchema).addSuccess(OrganizationProductWebhookUpsertResponseSchema, { status: 201 }).annotateContext(
|
|
3414
|
+
).setPath(OrganizationProductOptionParams).setHeaders(RequiredWebhookOperationHeaders).setPayload(CreateOrganizationProductWebhookSchema).addSuccess(OrganizationProductWebhookUpsertResponseSchema, { status: 201 }).annotateContext(
|
|
3316
3415
|
OpenApi.annotations({ summary: "Create a webhook for an organization product option" })
|
|
3317
3416
|
)
|
|
3318
3417
|
).add(
|
|
@@ -3324,11 +3423,20 @@ var organizationsGroup = HttpApiGroup.make("organizations").add(
|
|
|
3324
3423
|
summary: "Legacy single-webhook lookup for an organization product option"
|
|
3325
3424
|
})
|
|
3326
3425
|
)
|
|
3426
|
+
).add(
|
|
3427
|
+
HttpApiEndpoint.get(
|
|
3428
|
+
"getOrganizationProductWebhookOperationResult",
|
|
3429
|
+
"/organization-products/:organizationProductOptionId/webhook-operations/:idempotencyKey"
|
|
3430
|
+
).setPath(OrganizationProductWebhookOperationParams).addSuccess(Schema2.Union(OrganizationProductWebhookUpsertResponseSchema, Schema2.Null)).annotateContext(
|
|
3431
|
+
OpenApi.annotations({
|
|
3432
|
+
summary: "Recover an idempotent organization product webhook operation result"
|
|
3433
|
+
})
|
|
3434
|
+
)
|
|
3327
3435
|
).add(
|
|
3328
3436
|
HttpApiEndpoint.put(
|
|
3329
3437
|
"upsertOrganizationProductWebhook",
|
|
3330
3438
|
"/organization-products/:organizationProductOptionId/webhook"
|
|
3331
|
-
).setPath(OrganizationProductOptionParams).setPayload(UpsertOrganizationProductWebhookSchema).addSuccess(OrganizationProductWebhookUpsertResponseSchema).annotateContext(
|
|
3439
|
+
).setPath(OrganizationProductOptionParams).setHeaders(RequiredWebhookOperationHeaders).setPayload(UpsertOrganizationProductWebhookSchema).addSuccess(OrganizationProductWebhookUpsertResponseSchema).annotateContext(
|
|
3332
3440
|
OpenApi.annotations({
|
|
3333
3441
|
summary: "Legacy single-webhook create-or-update helper for an organization product option"
|
|
3334
3442
|
})
|
|
@@ -3337,7 +3445,7 @@ var organizationsGroup = HttpApiGroup.make("organizations").add(
|
|
|
3337
3445
|
HttpApiEndpoint.put(
|
|
3338
3446
|
"updateOrganizationProductWebhook",
|
|
3339
3447
|
"/organization-product-webhooks/:organizationProductWebhookId"
|
|
3340
|
-
).setPath(OrganizationProductWebhookParams).setPayload(UpdateOrganizationProductWebhookSchema).addSuccess(OrganizationProductWebhookUpsertResponseSchema).annotateContext(OpenApi.annotations({ summary: "Update an organization product webhook" }))
|
|
3448
|
+
).setPath(OrganizationProductWebhookParams).setHeaders(RequiredWebhookOperationHeaders).setPayload(UpdateOrganizationProductWebhookSchema).addSuccess(OrganizationProductWebhookUpsertResponseSchema).annotateContext(OpenApi.annotations({ summary: "Update an organization product webhook" }))
|
|
3341
3449
|
).add(
|
|
3342
3450
|
HttpApiEndpoint.del(
|
|
3343
3451
|
"deleteOrganizationProductWebhook",
|
|
@@ -3453,6 +3561,12 @@ var membersGroup = HttpApiGroup.make("members").add(
|
|
|
3453
3561
|
transform: createMemberExamplesTransform
|
|
3454
3562
|
})
|
|
3455
3563
|
)
|
|
3564
|
+
).add(
|
|
3565
|
+
HttpApiEndpoint.post("seedOrganizationMembers", "/organizations/:organizationId/members/seed").setPath(OrganizationIdParams).setPayload(SeedOrganizationMembersSchema).addSuccess(MemberSeedBatchSchema, { status: 201 }).annotateContext(
|
|
3566
|
+
OpenApi.annotations({
|
|
3567
|
+
summary: "Seed synthetic members for an organization"
|
|
3568
|
+
})
|
|
3569
|
+
)
|
|
3456
3570
|
).add(
|
|
3457
3571
|
HttpApiEndpoint.post(
|
|
3458
3572
|
"requestSourceManagedMemberCreate",
|
|
@@ -3738,6 +3852,15 @@ var memberSourcesGroup = HttpApiGroup.make("memberSources").add(
|
|
|
3738
3852
|
).setPath(OrganizationIdParams).setPayload(UpsertOrganizationMemberSourceSchema).addSuccess(OrganizationMemberSourceSchema).annotateContext(
|
|
3739
3853
|
OpenApi.annotations({ summary: "Create or update the member source for an organization" })
|
|
3740
3854
|
)
|
|
3855
|
+
).add(
|
|
3856
|
+
HttpApiEndpoint.post(
|
|
3857
|
+
"convertOrganizationToDemo",
|
|
3858
|
+
"/organizations/:organizationId/member-source/demo"
|
|
3859
|
+
).setPath(OrganizationIdParams).setPayload(ConvertOrganizationToDemoSchema).addSuccess(OrganizationMemberSourceSchema).annotateContext(
|
|
3860
|
+
OpenApi.annotations({
|
|
3861
|
+
summary: "Convert an existing organization to an Odyssey Nexus demo source"
|
|
3862
|
+
})
|
|
3863
|
+
)
|
|
3741
3864
|
).add(
|
|
3742
3865
|
HttpApiEndpoint.post(
|
|
3743
3866
|
"bootstrapOrganizationMemberSourceAgent",
|
|
@@ -3904,6 +4027,12 @@ var onsiteAgentsGroup = HttpApiGroup.make("onsiteAgents").add(
|
|
|
3904
4027
|
summary: "Poll for the next pending onsite custom-fields command"
|
|
3905
4028
|
})
|
|
3906
4029
|
)
|
|
4030
|
+
).add(
|
|
4031
|
+
HttpApiEndpoint.post("refreshOnsiteAgentRunCsvUpload", "/onsite-agent/runs/:runId/csv-upload").setPath(OrganizationMemberSyncRunParams).addSuccess(OnsiteAgentCsvUploadTargetSchema).annotateContext(
|
|
4032
|
+
OpenApi.annotations({
|
|
4033
|
+
summary: "Issue a fresh presigned CSV upload target for a claimed onsite sync run"
|
|
4034
|
+
})
|
|
4035
|
+
)
|
|
3907
4036
|
).add(
|
|
3908
4037
|
HttpApiEndpoint.post("completeOnsiteAgentRun", "/onsite-agent/runs/:runId/complete").setPath(OrganizationMemberSyncRunParams).setPayload(OnsiteAgentCompleteRunSchema).addSuccess(OrganizationMemberSyncRunSchema).annotateContext(
|
|
3909
4038
|
OpenApi.annotations({ summary: "Submit onsite agent sync results for a claimed run" })
|
|
@@ -4594,6 +4723,7 @@ function makeSpokeClient(hubClient) {
|
|
|
4594
4723
|
path: {
|
|
4595
4724
|
organizationProductOptionId: input.organizationProductOptionId
|
|
4596
4725
|
},
|
|
4726
|
+
headers: { "idempotency-key": input.idempotencyKey },
|
|
4597
4727
|
payload: input.payload
|
|
4598
4728
|
})
|
|
4599
4729
|
)
|
|
@@ -5021,6 +5151,7 @@ export {
|
|
|
5021
5151
|
CompleteOnsitePointCommandSchema,
|
|
5022
5152
|
CompleteOnsiteVoucherCommandSchema,
|
|
5023
5153
|
ConflictErrorSchema,
|
|
5154
|
+
ConvertOrganizationToDemoSchema,
|
|
5024
5155
|
CreateGuestSchema,
|
|
5025
5156
|
CreateMemberSchema,
|
|
5026
5157
|
CreateOrganizationMemberSourceCsvUploadResponseSchema,
|
|
@@ -5052,6 +5183,7 @@ export {
|
|
|
5052
5183
|
MemberResponseModeSchema,
|
|
5053
5184
|
MemberResponseSchema,
|
|
5054
5185
|
MemberSchema,
|
|
5186
|
+
MemberSeedBatchSchema,
|
|
5055
5187
|
MemberSourceSecretNameSchema,
|
|
5056
5188
|
MemberStatusCreditsSchema,
|
|
5057
5189
|
NotFoundErrorSchema,
|
|
@@ -5069,6 +5201,7 @@ export {
|
|
|
5069
5201
|
OnsiteAgentHeartbeatSchema,
|
|
5070
5202
|
OnsiteAgentIngestLiveFbiBatchSchema,
|
|
5071
5203
|
OnsiteAgentMemberCreateCommandSchema,
|
|
5204
|
+
OnsiteAgentMemberCreationResultSchema,
|
|
5072
5205
|
OnsiteAgentMemberLookupCommandSchema,
|
|
5073
5206
|
OnsiteAgentMemberPreferenceUpdateCommandSchema,
|
|
5074
5207
|
OnsiteAgentMemberRenewalCommandSchema,
|
|
@@ -5139,8 +5272,10 @@ export {
|
|
|
5139
5272
|
RequestSourceManagedMemberUpdateSchema,
|
|
5140
5273
|
RequestVoucherIssueSchema,
|
|
5141
5274
|
RequestVoucherLookupSchema,
|
|
5275
|
+
SeedOrganizationMembersSchema,
|
|
5142
5276
|
ServiceClientSchema,
|
|
5143
5277
|
SortDirectionSchema,
|
|
5278
|
+
SourceContactPreferenceSchema,
|
|
5144
5279
|
SourceManagedMemberLookupBySchema,
|
|
5145
5280
|
SourceManagedMemberLookupCommandPayloadSchema,
|
|
5146
5281
|
SourceManagedMemberPreferenceUpdateCommandPayloadSchema,
|