@spoketech/hub-client 0.1.6 → 0.1.9

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.d.ts CHANGED
@@ -6528,8 +6528,9 @@ type DeletePayload = Schema.Schema.Type<typeof DeletePayloadSchema>;
6528
6528
  type HubApiGroups = typeof HubApi extends HttpApi.HttpApi<any, infer Groups, any, any> ? Groups : never;
6529
6529
  type HubApiError = typeof HubApi extends HttpApi.HttpApi<any, any, infer ApiError, any> ? ApiError : never;
6530
6530
  type HubApiClient = HttpApiClient.Client<HubApiGroups, HubApiError, never>;
6531
+ type SpokeHubResult<T> = readonly [data: T, error: null] | readonly [data: null, error: SpokeHubClientError];
6531
6532
  type PromiseClient<T> = {
6532
- readonly [K in keyof T]: T[K] extends (...args: infer Args) => Effect.Effect<infer A, any, any> ? (...args: Args) => Promise<A> : T[K] extends object ? PromiseClient<T[K]> : T[K];
6533
+ readonly [K in keyof T]: T[K] extends (...args: infer Args) => Effect.Effect<infer A, any, any> ? (...args: Args) => Promise<SpokeHubResult<A>> : T[K] extends object ? PromiseClient<T[K]> : T[K];
6533
6534
  };
6534
6535
  type PromiseHubApiClient = PromiseClient<HubApiClient>;
6535
6536
  interface HubApiClientOptions {
@@ -6543,6 +6544,45 @@ interface HubApiCredentialOptions extends HubApiClientOptions {
6543
6544
  readonly clientId: string;
6544
6545
  readonly privateKey: string;
6545
6546
  }
6547
+ type SpokeHubApiErrorBody = {
6548
+ readonly code?: string;
6549
+ readonly message?: string;
6550
+ readonly [key: string]: unknown;
6551
+ };
6552
+ type SpokeHubErrorKind = "api" | "client" | "network" | "unknown";
6553
+ type SpokeHubHttpErrorContext = {
6554
+ readonly status?: number;
6555
+ readonly method?: string;
6556
+ readonly url?: string;
6557
+ readonly reason?: string;
6558
+ };
6559
+ declare class SpokeHubClientError extends Error {
6560
+ readonly kind: SpokeHubErrorKind;
6561
+ readonly code?: string;
6562
+ readonly body?: SpokeHubApiErrorBody;
6563
+ readonly status?: number;
6564
+ readonly method?: string;
6565
+ readonly url?: string;
6566
+ readonly reason?: string;
6567
+ readonly cause: unknown;
6568
+ constructor(input: {
6569
+ readonly kind: SpokeHubErrorKind;
6570
+ readonly message: string;
6571
+ readonly code?: string;
6572
+ readonly body?: SpokeHubApiErrorBody;
6573
+ readonly status?: number;
6574
+ readonly method?: string;
6575
+ readonly url?: string;
6576
+ readonly reason?: string;
6577
+ readonly cause: unknown;
6578
+ });
6579
+ toJSON(): {
6580
+ [k: string]: string | number | SpokeHubApiErrorBody | undefined;
6581
+ };
6582
+ }
6583
+ declare class SpokeHubApiError extends SpokeHubClientError {
6584
+ constructor(body: SpokeHubApiErrorBody, cause: unknown, context?: SpokeHubHttpErrorContext);
6585
+ }
6546
6586
  declare function resolveHubApiBaseUrl(baseUrl: string | URL, apiBasePath?: string): string;
6547
6587
  declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<{
6548
6588
  readonly auth: {
@@ -28187,54 +28227,54 @@ type VoucherCallResponse = Extract<OnsiteResourceCallResponse, {
28187
28227
  }>;
28188
28228
  type OnsiteResourceClient = ReturnType<typeof makeOnsiteResourceClient>;
28189
28229
  declare function makeOnsiteResourceClient(client: PromiseHubApiClient): {
28190
- readonly call: (input: OnsiteResourceCallInput) => Promise<OnsiteResourceCallResponse>;
28230
+ readonly call: (input: OnsiteResourceCallInput) => Promise<SpokeHubResult<OnsiteResourceCallResponse>>;
28191
28231
  readonly members: {
28192
28232
  readonly create: (input: WaitOptions & {
28193
28233
  readonly payload: RequestSourceManagedMemberCreateInput;
28194
- }) => Promise<MemberCallResponse>;
28234
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28195
28235
  readonly update: (input: WaitOptions & {
28196
28236
  readonly memberId: string;
28197
28237
  readonly payload: RequestSourceManagedMemberUpdateInput;
28198
- }) => Promise<MemberCallResponse>;
28238
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28199
28239
  readonly renew: (input: WaitOptions & {
28200
28240
  readonly memberId: string;
28201
28241
  readonly payload: RequestSourceManagedMemberRenewalInput;
28202
- }) => Promise<MemberCallResponse>;
28242
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28203
28243
  readonly lookup: (input: WaitOptions & {
28204
28244
  readonly lookupBy: SourceManagedMemberLookupBy;
28205
28245
  readonly lookupValue: string;
28206
- }) => Promise<MemberCallResponse>;
28246
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28207
28247
  };
28208
28248
  readonly vouchers: {
28209
28249
  readonly issue: (input: WaitOptions & {
28210
28250
  readonly payload: RequestVoucherIssueInput;
28211
- }) => Promise<VoucherCallResponse>;
28251
+ }) => Promise<SpokeHubResult<VoucherCallResponse>>;
28212
28252
  };
28213
28253
  };
28214
28254
  declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions) => Promise<{
28215
28255
  readonly client: {
28216
- readonly call: (input: OnsiteResourceCallInput) => Promise<OnsiteResourceCallResponse>;
28256
+ readonly call: (input: OnsiteResourceCallInput) => Promise<SpokeHubResult<OnsiteResourceCallResponse>>;
28217
28257
  readonly members: {
28218
28258
  readonly create: (input: WaitOptions & {
28219
28259
  readonly payload: RequestSourceManagedMemberCreateInput;
28220
- }) => Promise<MemberCallResponse>;
28260
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28221
28261
  readonly update: (input: WaitOptions & {
28222
28262
  readonly memberId: string;
28223
28263
  readonly payload: RequestSourceManagedMemberUpdateInput;
28224
- }) => Promise<MemberCallResponse>;
28264
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28225
28265
  readonly renew: (input: WaitOptions & {
28226
28266
  readonly memberId: string;
28227
28267
  readonly payload: RequestSourceManagedMemberRenewalInput;
28228
- }) => Promise<MemberCallResponse>;
28268
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28229
28269
  readonly lookup: (input: WaitOptions & {
28230
28270
  readonly lookupBy: SourceManagedMemberLookupBy;
28231
28271
  readonly lookupValue: string;
28232
- }) => Promise<MemberCallResponse>;
28272
+ }) => Promise<SpokeHubResult<MemberCallResponse>>;
28233
28273
  };
28234
28274
  readonly vouchers: {
28235
28275
  readonly issue: (input: WaitOptions & {
28236
28276
  readonly payload: RequestVoucherIssueInput;
28237
- }) => Promise<VoucherCallResponse>;
28277
+ }) => Promise<SpokeHubResult<VoucherCallResponse>>;
28238
28278
  };
28239
28279
  };
28240
28280
  readonly hubClient: PromiseClient<{
@@ -35465,7 +35505,7 @@ type ListProductWebhooksInput = PageInput & {
35465
35505
  type PromiseSpokeClient = ReturnType<typeof makeSpokeClient>;
35466
35506
  declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35467
35507
  readonly organizations: {
35468
- readonly list: (input?: ListOrganizationsInput) => Promise<{
35508
+ readonly list: (input?: ListOrganizationsInput) => Promise<SpokeHubResult<{
35469
35509
  readonly name: string | null;
35470
35510
  readonly items: readonly {
35471
35511
  readonly status: "active" | "archived";
@@ -35485,8 +35525,8 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35485
35525
  readonly pageSize: number;
35486
35526
  readonly total: number;
35487
35527
  readonly totalPages: number;
35488
- }>;
35489
- readonly create: (input: CreateOrganizationInput) => Promise<{
35528
+ }>>;
35529
+ readonly create: (input: CreateOrganizationInput) => Promise<SpokeHubResult<{
35490
35530
  readonly status: "active" | "archived";
35491
35531
  readonly description: string | null;
35492
35532
  readonly id: string;
@@ -35499,11 +35539,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35499
35539
  readonly createdAt: string;
35500
35540
  readonly updatedAt: string;
35501
35541
  readonly deletedAt: string | null;
35502
- }>;
35542
+ }>>;
35503
35543
  readonly update: (input: {
35504
35544
  readonly organizationId: string;
35505
35545
  readonly payload: UpdateOrganizationInput;
35506
- }) => Promise<{
35546
+ }) => Promise<SpokeHubResult<{
35507
35547
  readonly status: "active" | "archived";
35508
35548
  readonly description: string | null;
35509
35549
  readonly id: string;
@@ -35516,13 +35556,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35516
35556
  readonly createdAt: string;
35517
35557
  readonly updatedAt: string;
35518
35558
  readonly deletedAt: string | null;
35519
- }>;
35559
+ }>>;
35520
35560
  readonly delete: (input: {
35521
35561
  readonly organizationId: string;
35522
35562
  readonly payload: DeletePayload;
35523
- }) => Promise<void>;
35563
+ }) => Promise<SpokeHubResult<void>>;
35524
35564
  readonly productOptions: {
35525
- readonly list: (input?: PageInput) => Promise<{
35565
+ readonly list: (input?: PageInput) => Promise<SpokeHubResult<{
35526
35566
  readonly items: readonly {
35527
35567
  readonly id: string;
35528
35568
  readonly slug: string;
@@ -35535,20 +35575,20 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35535
35575
  readonly pageSize: number;
35536
35576
  readonly total: number;
35537
35577
  readonly totalPages: number;
35538
- }>;
35578
+ }>>;
35539
35579
  readonly create: (input: {
35540
35580
  readonly slug: string;
35541
35581
  readonly name: string;
35542
- }) => Promise<{
35582
+ }) => Promise<SpokeHubResult<{
35543
35583
  readonly id: string;
35544
35584
  readonly slug: string;
35545
35585
  readonly name: string;
35546
35586
  readonly createdAt: string;
35547
35587
  readonly updatedAt: string;
35548
35588
  readonly deletedAt: string | null;
35549
- }>;
35589
+ }>>;
35550
35590
  readonly webhooks: {
35551
- readonly list: (input?: ListProductWebhooksInput) => Promise<{
35591
+ readonly list: (input?: ListProductWebhooksInput) => Promise<SpokeHubResult<{
35552
35592
  readonly organizationProductOptionId: string | null;
35553
35593
  readonly items: readonly {
35554
35594
  readonly status: "active" | "disabled";
@@ -35567,10 +35607,10 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35567
35607
  readonly pageSize: number;
35568
35608
  readonly total: number;
35569
35609
  readonly totalPages: number;
35570
- }>;
35610
+ }>>;
35571
35611
  readonly get: (input: {
35572
35612
  readonly organizationProductOptionId: string;
35573
- }) => Promise<{
35613
+ }) => Promise<SpokeHubResult<{
35574
35614
  readonly status: "active" | "disabled";
35575
35615
  readonly id: string;
35576
35616
  readonly createdAt: string;
@@ -35582,11 +35622,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35582
35622
  readonly lastDeliveredAt: string | null;
35583
35623
  readonly lastDeliveryStatus: "success" | "failure" | null;
35584
35624
  readonly lastDeliveryError: string | null;
35585
- } | null>;
35625
+ } | null>>;
35586
35626
  readonly upsert: (input: {
35587
35627
  readonly organizationProductOptionId: string;
35588
35628
  readonly payload: UpsertOrganizationProductWebhookInput;
35589
- }) => Promise<{
35629
+ }) => Promise<SpokeHubResult<{
35590
35630
  readonly webhook: {
35591
35631
  readonly status: "active" | "disabled";
35592
35632
  readonly id: string;
@@ -35601,13 +35641,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35601
35641
  readonly lastDeliveryError: string | null;
35602
35642
  };
35603
35643
  readonly signingSecret: string | null;
35604
- }>;
35644
+ }>>;
35605
35645
  };
35606
35646
  };
35607
35647
  };
35608
35648
  readonly members: {
35609
- readonly list: (input: ListMembersInput) => Promise<OrganizationMembersListResponse>;
35610
- readonly get: (input: GetMemberInput) => Promise<{
35649
+ readonly list: (input: ListMembersInput) => Promise<SpokeHubResult<OrganizationMembersListResponse>>;
35650
+ readonly get: (input: GetMemberInput) => Promise<SpokeHubResult<{
35611
35651
  readonly email: string | null;
35612
35652
  readonly status: "active" | "archived" | "suspended" | "expired";
35613
35653
  readonly id: string;
@@ -35711,11 +35751,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35711
35751
  readonly dob: string | null;
35712
35752
  readonly statusCredits: number;
35713
35753
  readonly responseMode: "basic";
35714
- }>;
35754
+ }>>;
35715
35755
  readonly bulkGet: (input: {
35716
35756
  readonly organizationId: string;
35717
35757
  readonly payload: BulkGetOrganizationMembersInput;
35718
- }) => Promise<{
35758
+ }) => Promise<SpokeHubResult<{
35719
35759
  readonly items: readonly {
35720
35760
  readonly email: string | null;
35721
35761
  readonly status: "active" | "archived" | "suspended" | "expired";
@@ -35831,11 +35871,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35831
35871
  readonly responseMode: "basic";
35832
35872
  readonly requestedIds: readonly string[];
35833
35873
  readonly missingIds: readonly string[];
35834
- }>;
35874
+ }>>;
35835
35875
  readonly create: (input: {
35836
35876
  readonly organizationId: string;
35837
35877
  readonly payload: CreateMemberInput;
35838
- }) => Promise<{
35878
+ }) => Promise<SpokeHubResult<{
35839
35879
  readonly email: string | null;
35840
35880
  readonly status: "active" | "archived" | "suspended" | "expired";
35841
35881
  readonly id: string;
@@ -35898,12 +35938,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35898
35938
  readonly customFields: {
35899
35939
  readonly [x: string]: unknown;
35900
35940
  };
35901
- }>;
35941
+ }>>;
35902
35942
  readonly update: (input: {
35903
35943
  readonly organizationId: string;
35904
35944
  readonly memberId: string;
35905
35945
  readonly payload: UpdateMemberInput;
35906
- }) => Promise<{
35946
+ }) => Promise<SpokeHubResult<{
35907
35947
  readonly email: string | null;
35908
35948
  readonly status: "active" | "archived" | "suspended" | "expired";
35909
35949
  readonly id: string;
@@ -35966,37 +36006,37 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
35966
36006
  readonly customFields: {
35967
36007
  readonly [x: string]: unknown;
35968
36008
  };
35969
- }>;
36009
+ }>>;
35970
36010
  readonly delete: (input: {
35971
36011
  readonly organizationId: string;
35972
36012
  readonly memberId: string;
35973
36013
  readonly payload: DeletePayload;
35974
- }) => Promise<void>;
36014
+ }) => Promise<SpokeHubResult<void>>;
35975
36015
  readonly statusCredits: {
35976
36016
  readonly get: (input: {
35977
36017
  readonly organizationId: string;
35978
36018
  readonly memberId: string;
35979
- }) => Promise<{
36019
+ }) => Promise<SpokeHubResult<{
35980
36020
  readonly updatedAt: string;
35981
36021
  readonly organizationId: string;
35982
36022
  readonly memberId: string;
35983
36023
  readonly statusCredits: number;
35984
- }>;
36024
+ }>>;
35985
36025
  readonly update: (input: {
35986
36026
  readonly organizationId: string;
35987
36027
  readonly memberId: string;
35988
36028
  readonly payload: UpdateMemberStatusCreditsInput;
35989
- }) => Promise<{
36029
+ }) => Promise<SpokeHubResult<{
35990
36030
  readonly updatedAt: string;
35991
36031
  readonly organizationId: string;
35992
36032
  readonly memberId: string;
35993
36033
  readonly statusCredits: number;
35994
- }>;
36034
+ }>>;
35995
36035
  };
35996
36036
  readonly metadata: {
35997
36037
  readonly ratingGrades: (input: PageInput & {
35998
36038
  readonly organizationId: string;
35999
- }) => Promise<{
36039
+ }) => Promise<SpokeHubResult<{
36000
36040
  readonly items: readonly {
36001
36041
  readonly ratingGrade: string | null;
36002
36042
  readonly ratingGradeId: string | null;
@@ -36005,10 +36045,10 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36005
36045
  readonly pageSize: number;
36006
36046
  readonly total: number;
36007
36047
  readonly totalPages: number;
36008
- }>;
36048
+ }>>;
36009
36049
  readonly membershipTypes: (input: PageInput & {
36010
36050
  readonly organizationId: string;
36011
- }) => Promise<{
36051
+ }) => Promise<SpokeHubResult<{
36012
36052
  readonly items: readonly {
36013
36053
  readonly membershipType: string | null;
36014
36054
  readonly membershipTypeId: string | null;
@@ -36017,10 +36057,10 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36017
36057
  readonly pageSize: number;
36018
36058
  readonly total: number;
36019
36059
  readonly totalPages: number;
36020
- }>;
36060
+ }>>;
36021
36061
  readonly titles: (input: PageInput & {
36022
36062
  readonly organizationId: string;
36023
- }) => Promise<{
36063
+ }) => Promise<SpokeHubResult<{
36024
36064
  readonly items: readonly {
36025
36065
  readonly title: string;
36026
36066
  }[];
@@ -36028,10 +36068,10 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36028
36068
  readonly pageSize: number;
36029
36069
  readonly total: number;
36030
36070
  readonly totalPages: number;
36031
- }>;
36071
+ }>>;
36032
36072
  readonly genders: (input: PageInput & {
36033
36073
  readonly organizationId: string;
36034
- }) => Promise<{
36074
+ }) => Promise<SpokeHubResult<{
36035
36075
  readonly items: readonly {
36036
36076
  readonly gender: string;
36037
36077
  }[];
@@ -36039,13 +36079,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36039
36079
  readonly pageSize: number;
36040
36080
  readonly total: number;
36041
36081
  readonly totalPages: number;
36042
- }>;
36082
+ }>>;
36043
36083
  };
36044
36084
  readonly sourceRequests: {
36045
36085
  readonly create: (input: {
36046
36086
  readonly organizationId: string;
36047
36087
  readonly payload: RequestSourceManagedMemberCreateInput;
36048
- }) => Promise<{
36088
+ }) => Promise<SpokeHubResult<{
36049
36089
  readonly status: "requested" | "accepted" | "completed" | "failed";
36050
36090
  readonly id: string;
36051
36091
  readonly createdAt: string;
@@ -36065,12 +36105,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36065
36105
  readonly completedAt: string | null;
36066
36106
  readonly organizationMemberSourceId: string;
36067
36107
  readonly organizationMemberSourceAgentId: string | null;
36068
- }>;
36108
+ }>>;
36069
36109
  readonly update: (input: {
36070
36110
  readonly organizationId: string;
36071
36111
  readonly memberId: string;
36072
36112
  readonly payload: RequestSourceManagedMemberUpdateInput;
36073
- }) => Promise<{
36113
+ }) => Promise<SpokeHubResult<{
36074
36114
  readonly status: "requested" | "accepted" | "completed" | "failed";
36075
36115
  readonly id: string;
36076
36116
  readonly createdAt: string;
@@ -36090,12 +36130,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36090
36130
  readonly completedAt: string | null;
36091
36131
  readonly organizationMemberSourceId: string;
36092
36132
  readonly organizationMemberSourceAgentId: string | null;
36093
- }>;
36133
+ }>>;
36094
36134
  readonly renew: (input: {
36095
36135
  readonly organizationId: string;
36096
36136
  readonly memberId: string;
36097
36137
  readonly payload: RequestSourceManagedMemberRenewalInput;
36098
- }) => Promise<{
36138
+ }) => Promise<SpokeHubResult<{
36099
36139
  readonly status: "requested" | "accepted" | "completed" | "failed";
36100
36140
  readonly id: string;
36101
36141
  readonly createdAt: string;
@@ -36115,12 +36155,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36115
36155
  readonly completedAt: string | null;
36116
36156
  readonly organizationMemberSourceId: string;
36117
36157
  readonly organizationMemberSourceAgentId: string | null;
36118
- }>;
36158
+ }>>;
36119
36159
  readonly lookup: (input: {
36120
36160
  readonly organizationId: string;
36121
36161
  readonly lookupBy: SourceManagedMemberLookupBy;
36122
36162
  readonly lookupValue: string;
36123
- }) => Promise<{
36163
+ }) => Promise<SpokeHubResult<{
36124
36164
  readonly status: "requested" | "accepted" | "completed" | "failed";
36125
36165
  readonly id: string;
36126
36166
  readonly createdAt: string;
@@ -36140,13 +36180,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36140
36180
  readonly completedAt: string | null;
36141
36181
  readonly organizationMemberSourceId: string;
36142
36182
  readonly organizationMemberSourceAgentId: string | null;
36143
- }>;
36183
+ }>>;
36144
36184
  };
36145
36185
  };
36146
36186
  readonly memberSources: {
36147
36187
  readonly get: (input: {
36148
36188
  readonly organizationId: string;
36149
- }) => Promise<{
36189
+ }) => Promise<SpokeHubResult<{
36150
36190
  readonly status: "active" | "paused" | "disabled";
36151
36191
  readonly id: string;
36152
36192
  readonly createdAt: string;
@@ -36191,11 +36231,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36191
36231
  readonly lastHeartbeatAt: string | null;
36192
36232
  readonly lastVersion: string | null;
36193
36233
  } | null;
36194
- } | null>;
36234
+ } | null>>;
36195
36235
  readonly upsert: (input: {
36196
36236
  readonly organizationId: string;
36197
36237
  readonly payload: UpsertOrganizationMemberSourceInput;
36198
- }) => Promise<{
36238
+ }) => Promise<SpokeHubResult<{
36199
36239
  readonly status: "active" | "paused" | "disabled";
36200
36240
  readonly id: string;
36201
36241
  readonly createdAt: string;
@@ -36240,11 +36280,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36240
36280
  readonly lastHeartbeatAt: string | null;
36241
36281
  readonly lastVersion: string | null;
36242
36282
  } | null;
36243
- }>;
36283
+ }>>;
36244
36284
  readonly bootstrapAgent: (input: {
36245
36285
  readonly organizationId: string;
36246
36286
  readonly payload: BootstrapOrganizationMemberSourceAgentInput;
36247
- }) => Promise<{
36287
+ }) => Promise<SpokeHubResult<{
36248
36288
  readonly agent: {
36249
36289
  readonly status: "active" | "paused" | "disabled";
36250
36290
  readonly id: string;
@@ -36267,10 +36307,10 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36267
36307
  readonly lastVersion: string | null;
36268
36308
  };
36269
36309
  readonly privateKey: string;
36270
- }>;
36310
+ }>>;
36271
36311
  readonly csvUploadReadiness: (input: {
36272
36312
  readonly organizationId: string;
36273
- }) => Promise<{
36313
+ }) => Promise<SpokeHubResult<{
36274
36314
  readonly organizationId: string;
36275
36315
  readonly organizationMemberSourceId: string | null;
36276
36316
  readonly mapping: {
@@ -36337,11 +36377,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36337
36377
  readonly bucketName: string | null;
36338
36378
  readonly keyPrefix: string | null;
36339
36379
  readonly reason: string | null;
36340
- }>;
36380
+ }>>;
36341
36381
  readonly csvMapping: {
36342
36382
  readonly get: (input: {
36343
36383
  readonly organizationId: string;
36344
- }) => Promise<{
36384
+ }) => Promise<SpokeHubResult<{
36345
36385
  readonly id: string;
36346
36386
  readonly createdAt: string;
36347
36387
  readonly updatedAt: string;
@@ -36398,11 +36438,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36398
36438
  readonly marketingSms?: string | null | undefined;
36399
36439
  readonly marketingPost?: string | null | undefined;
36400
36440
  };
36401
- } | null>;
36441
+ } | null>>;
36402
36442
  readonly upsert: (input: {
36403
36443
  readonly organizationId: string;
36404
36444
  readonly payload: UpsertOrganizationMemberSourceCsvMappingInput;
36405
- }) => Promise<{
36445
+ }) => Promise<SpokeHubResult<{
36406
36446
  readonly id: string;
36407
36447
  readonly createdAt: string;
36408
36448
  readonly updatedAt: string;
@@ -36459,13 +36499,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36459
36499
  readonly marketingSms?: string | null | undefined;
36460
36500
  readonly marketingPost?: string | null | undefined;
36461
36501
  };
36462
- }>;
36502
+ }>>;
36463
36503
  };
36464
36504
  readonly csvUploads: {
36465
36505
  readonly create: (input: {
36466
36506
  readonly organizationId: string;
36467
36507
  readonly payload: CreateOrganizationMemberSourceCsvUploadInput;
36468
- }) => Promise<{
36508
+ }) => Promise<SpokeHubResult<{
36469
36509
  readonly mapping: {
36470
36510
  readonly id: string;
36471
36511
  readonly createdAt: string;
@@ -36549,12 +36589,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36549
36589
  readonly [x: string]: string;
36550
36590
  };
36551
36591
  };
36552
- }>;
36592
+ }>>;
36553
36593
  };
36554
36594
  readonly webhooks: {
36555
36595
  readonly get: (input: {
36556
36596
  readonly organizationId: string;
36557
- }) => Promise<{
36597
+ }) => Promise<SpokeHubResult<{
36558
36598
  readonly status: "active" | "disabled";
36559
36599
  readonly id: string;
36560
36600
  readonly createdAt: string;
@@ -36567,11 +36607,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36567
36607
  readonly lastDeliveryError: string | null;
36568
36608
  readonly organizationId: string;
36569
36609
  readonly organizationMemberSourceId: string;
36570
- } | null>;
36610
+ } | null>>;
36571
36611
  readonly upsert: (input: {
36572
36612
  readonly organizationId: string;
36573
36613
  readonly payload: UpsertOrganizationMemberSourceWebhookInput;
36574
- }) => Promise<{
36614
+ }) => Promise<SpokeHubResult<{
36575
36615
  readonly webhook: {
36576
36616
  readonly status: "active" | "disabled";
36577
36617
  readonly id: string;
@@ -36587,12 +36627,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36587
36627
  readonly organizationMemberSourceId: string;
36588
36628
  };
36589
36629
  readonly signingSecret: string | null;
36590
- }>;
36630
+ }>>;
36591
36631
  };
36592
36632
  readonly runs: {
36593
36633
  readonly list: (input: PageInput & {
36594
36634
  readonly organizationId: string;
36595
- }) => Promise<{
36635
+ }) => Promise<SpokeHubResult<{
36596
36636
  readonly items: readonly {
36597
36637
  readonly status: "success" | "failure" | "pending" | "running" | "partial_failure";
36598
36638
  readonly id: string;
@@ -36644,11 +36684,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36644
36684
  readonly pageSize: number;
36645
36685
  readonly total: number;
36646
36686
  readonly totalPages: number;
36647
- }>;
36687
+ }>>;
36648
36688
  readonly trigger: (input: {
36649
36689
  readonly organizationId: string;
36650
36690
  readonly payload: TriggerOrganizationMemberSyncInput;
36651
- }) => Promise<{
36691
+ }) => Promise<SpokeHubResult<{
36652
36692
  readonly status: "success" | "failure" | "pending" | "running" | "partial_failure";
36653
36693
  readonly id: string;
36654
36694
  readonly createdAt: string;
@@ -36694,12 +36734,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36694
36734
  readonly lineNumber: number | null;
36695
36735
  readonly occurredAt: string;
36696
36736
  }[];
36697
- }>;
36737
+ }>>;
36698
36738
  };
36699
36739
  readonly commands: {
36700
36740
  readonly list: (input: PageInput & {
36701
36741
  readonly organizationId: string;
36702
- }) => Promise<{
36742
+ }) => Promise<SpokeHubResult<{
36703
36743
  readonly items: readonly {
36704
36744
  readonly status: "requested" | "accepted" | "completed" | "failed";
36705
36745
  readonly id: string;
@@ -36725,13 +36765,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36725
36765
  readonly pageSize: number;
36726
36766
  readonly total: number;
36727
36767
  readonly totalPages: number;
36728
- }>;
36768
+ }>>;
36729
36769
  };
36730
36770
  };
36731
36771
  readonly points: {
36732
36772
  readonly listTypes: (input: {
36733
36773
  readonly organizationId: string;
36734
- }) => Promise<{
36774
+ }) => Promise<SpokeHubResult<{
36735
36775
  readonly items: readonly {
36736
36776
  readonly code: string;
36737
36777
  readonly status: "active" | "archived";
@@ -36745,7 +36785,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36745
36785
  readonly externalSystemId: string | null;
36746
36786
  readonly pointsPerDollar: number | null;
36747
36787
  }[];
36748
- }>;
36788
+ }>>;
36749
36789
  readonly createType: (input: {
36750
36790
  readonly organizationId: string;
36751
36791
  readonly payload: {
@@ -36756,7 +36796,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36756
36796
  readonly description?: string | null;
36757
36797
  readonly status?: "active" | "archived";
36758
36798
  };
36759
- }) => Promise<{
36799
+ }) => Promise<SpokeHubResult<{
36760
36800
  readonly code: string;
36761
36801
  readonly status: "active" | "archived";
36762
36802
  readonly description: string | null;
@@ -36768,12 +36808,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36768
36808
  readonly organizationId: string;
36769
36809
  readonly externalSystemId: string | null;
36770
36810
  readonly pointsPerDollar: number | null;
36771
- }>;
36811
+ }>>;
36772
36812
  readonly balances: {
36773
36813
  readonly list: (input: {
36774
36814
  readonly organizationId: string;
36775
36815
  readonly memberId: string;
36776
- }) => Promise<{
36816
+ }) => Promise<SpokeHubResult<{
36777
36817
  readonly organizationId: string;
36778
36818
  readonly memberId: string;
36779
36819
  readonly items: readonly {
@@ -36786,13 +36826,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36786
36826
  readonly pointTypeId: string;
36787
36827
  readonly balance: number;
36788
36828
  }[];
36789
- }>;
36829
+ }>>;
36790
36830
  readonly upsert: (input: {
36791
36831
  readonly organizationId: string;
36792
36832
  readonly memberId: string;
36793
36833
  readonly pointTypeId: string;
36794
36834
  readonly payload: UpsertMemberPointBalanceInput;
36795
- }) => Promise<{
36835
+ }) => Promise<SpokeHubResult<{
36796
36836
  readonly code: string;
36797
36837
  readonly description: string | null;
36798
36838
  readonly name: string;
@@ -36801,13 +36841,13 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36801
36841
  readonly memberId: string;
36802
36842
  readonly pointTypeId: string;
36803
36843
  readonly balance: number;
36804
- }>;
36844
+ }>>;
36805
36845
  };
36806
36846
  };
36807
36847
  readonly vouchers: {
36808
36848
  readonly getProvider: (input: {
36809
36849
  readonly organizationId: string;
36810
- }) => Promise<{
36850
+ }) => Promise<SpokeHubResult<{
36811
36851
  readonly status: "active" | "disabled";
36812
36852
  readonly id: string;
36813
36853
  readonly createdAt: string;
@@ -36824,11 +36864,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36824
36864
  readonly name: string;
36825
36865
  }[];
36826
36866
  readonly lastError: string | null;
36827
- } | null>;
36867
+ } | null>>;
36828
36868
  readonly upsertProvider: (input: {
36829
36869
  readonly organizationId: string;
36830
36870
  readonly payload: UpsertOrganizationVoucherProviderInput;
36831
- }) => Promise<{
36871
+ }) => Promise<SpokeHubResult<{
36832
36872
  readonly status: "active" | "disabled";
36833
36873
  readonly id: string;
36834
36874
  readonly createdAt: string;
@@ -36845,11 +36885,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36845
36885
  readonly name: string;
36846
36886
  }[];
36847
36887
  readonly lastError: string | null;
36848
- }>;
36888
+ }>>;
36849
36889
  readonly requestIssue: (input: {
36850
36890
  readonly organizationId: string;
36851
36891
  readonly payload: RequestVoucherIssueInput;
36852
- }) => Promise<{
36892
+ }) => Promise<SpokeHubResult<{
36853
36893
  readonly status: "requested" | "accepted" | "completed" | "failed";
36854
36894
  readonly id: string;
36855
36895
  readonly createdAt: string;
@@ -36869,10 +36909,10 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36869
36909
  readonly requestedAt: string;
36870
36910
  readonly acceptedAt: string | null;
36871
36911
  readonly completedAt: string | null;
36872
- }>;
36912
+ }>>;
36873
36913
  };
36874
36914
  readonly guests: {
36875
- readonly list: (input: ListGuestsInput) => Promise<{
36915
+ readonly list: (input: ListGuestsInput) => Promise<SpokeHubResult<{
36876
36916
  readonly email: string | null;
36877
36917
  readonly name: string | null;
36878
36918
  readonly items: readonly {
@@ -36901,11 +36941,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36901
36941
  readonly pageSize: number;
36902
36942
  readonly total: number;
36903
36943
  readonly totalPages: number;
36904
- }>;
36944
+ }>>;
36905
36945
  readonly get: (input: {
36906
36946
  readonly organizationId: string;
36907
36947
  readonly guestId: string;
36908
- }) => Promise<{
36948
+ }) => Promise<SpokeHubResult<{
36909
36949
  readonly email: string | null;
36910
36950
  readonly status: "active" | "archived" | "checked_out";
36911
36951
  readonly id: string;
@@ -36925,11 +36965,11 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36925
36965
  readonly meta: {
36926
36966
  readonly [x: string]: unknown;
36927
36967
  };
36928
- }>;
36968
+ }>>;
36929
36969
  readonly create: (input: {
36930
36970
  readonly organizationId: string;
36931
36971
  readonly payload: CreateGuestInput;
36932
- }) => Promise<{
36972
+ }) => Promise<SpokeHubResult<{
36933
36973
  readonly email: string | null;
36934
36974
  readonly status: "active" | "archived" | "checked_out";
36935
36975
  readonly id: string;
@@ -36949,12 +36989,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36949
36989
  readonly meta: {
36950
36990
  readonly [x: string]: unknown;
36951
36991
  };
36952
- }>;
36992
+ }>>;
36953
36993
  readonly update: (input: {
36954
36994
  readonly organizationId: string;
36955
36995
  readonly guestId: string;
36956
36996
  readonly payload: UpdateGuestInput;
36957
- }) => Promise<{
36997
+ }) => Promise<SpokeHubResult<{
36958
36998
  readonly email: string | null;
36959
36999
  readonly status: "active" | "archived" | "checked_out";
36960
37000
  readonly id: string;
@@ -36974,12 +37014,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
36974
37014
  readonly meta: {
36975
37015
  readonly [x: string]: unknown;
36976
37016
  };
36977
- }>;
37017
+ }>>;
36978
37018
  readonly delete: (input: {
36979
37019
  readonly organizationId: string;
36980
37020
  readonly guestId: string;
36981
37021
  readonly payload: DeletePayload;
36982
- }) => Promise<void>;
37022
+ }) => Promise<SpokeHubResult<void>>;
36983
37023
  };
36984
37024
  readonly onsite: {
36985
37025
  readonly call: (input: {
@@ -37114,14 +37154,14 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37114
37154
  };
37115
37155
  readonly operation: "voucher.issue";
37116
37156
  readonly waitMs?: number | undefined;
37117
- })) => Promise<OnsiteResourceCallResponse>;
37157
+ })) => Promise<SpokeHubResult<OnsiteResourceCallResponse>>;
37118
37158
  readonly members: {
37119
37159
  readonly create: (input: {
37120
37160
  readonly organizationId: string;
37121
37161
  readonly waitMs?: number;
37122
37162
  } & {
37123
37163
  readonly payload: RequestSourceManagedMemberCreateInput;
37124
- }) => Promise<{
37164
+ }) => Promise<SpokeHubResult<{
37125
37165
  readonly kind: "member";
37126
37166
  readonly operation: "member.create" | "member.update" | "member.renew" | "member.lookup";
37127
37167
  readonly settled: boolean;
@@ -37147,14 +37187,14 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37147
37187
  readonly organizationMemberSourceId: string;
37148
37188
  readonly organizationMemberSourceAgentId: string | null;
37149
37189
  };
37150
- }>;
37190
+ }>>;
37151
37191
  readonly update: (input: {
37152
37192
  readonly organizationId: string;
37153
37193
  readonly waitMs?: number;
37154
37194
  } & {
37155
37195
  readonly memberId: string;
37156
37196
  readonly payload: RequestSourceManagedMemberUpdateInput;
37157
- }) => Promise<{
37197
+ }) => Promise<SpokeHubResult<{
37158
37198
  readonly kind: "member";
37159
37199
  readonly operation: "member.create" | "member.update" | "member.renew" | "member.lookup";
37160
37200
  readonly settled: boolean;
@@ -37180,14 +37220,14 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37180
37220
  readonly organizationMemberSourceId: string;
37181
37221
  readonly organizationMemberSourceAgentId: string | null;
37182
37222
  };
37183
- }>;
37223
+ }>>;
37184
37224
  readonly renew: (input: {
37185
37225
  readonly organizationId: string;
37186
37226
  readonly waitMs?: number;
37187
37227
  } & {
37188
37228
  readonly memberId: string;
37189
37229
  readonly payload: RequestSourceManagedMemberRenewalInput;
37190
- }) => Promise<{
37230
+ }) => Promise<SpokeHubResult<{
37191
37231
  readonly kind: "member";
37192
37232
  readonly operation: "member.create" | "member.update" | "member.renew" | "member.lookup";
37193
37233
  readonly settled: boolean;
@@ -37213,14 +37253,14 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37213
37253
  readonly organizationMemberSourceId: string;
37214
37254
  readonly organizationMemberSourceAgentId: string | null;
37215
37255
  };
37216
- }>;
37256
+ }>>;
37217
37257
  readonly lookup: (input: {
37218
37258
  readonly organizationId: string;
37219
37259
  readonly waitMs?: number;
37220
37260
  } & {
37221
37261
  readonly lookupBy: SourceManagedMemberLookupBy;
37222
37262
  readonly lookupValue: string;
37223
- }) => Promise<{
37263
+ }) => Promise<SpokeHubResult<{
37224
37264
  readonly kind: "member";
37225
37265
  readonly operation: "member.create" | "member.update" | "member.renew" | "member.lookup";
37226
37266
  readonly settled: boolean;
@@ -37246,7 +37286,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37246
37286
  readonly organizationMemberSourceId: string;
37247
37287
  readonly organizationMemberSourceAgentId: string | null;
37248
37288
  };
37249
- }>;
37289
+ }>>;
37250
37290
  };
37251
37291
  readonly vouchers: {
37252
37292
  readonly issue: (input: {
@@ -37254,7 +37294,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37254
37294
  readonly waitMs?: number;
37255
37295
  } & {
37256
37296
  readonly payload: RequestVoucherIssueInput;
37257
- }) => Promise<{
37297
+ }) => Promise<SpokeHubResult<{
37258
37298
  readonly kind: "voucher";
37259
37299
  readonly operation: "voucher.issue";
37260
37300
  readonly settled: boolean;
@@ -37280,12 +37320,12 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37280
37320
  readonly acceptedAt: string | null;
37281
37321
  readonly completedAt: string | null;
37282
37322
  };
37283
- }>;
37323
+ }>>;
37284
37324
  };
37285
37325
  };
37286
37326
  readonly callOnsite: (input: {
37287
37327
  readonly organizationId: string;
37288
- } & OnsiteResourceCallRequest) => Promise<{
37328
+ } & OnsiteResourceCallRequest) => Promise<SpokeHubResult<{
37289
37329
  readonly kind: "member";
37290
37330
  readonly operation: "member.create" | "member.update" | "member.renew" | "member.lookup";
37291
37331
  readonly settled: boolean;
@@ -37337,7 +37377,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
37337
37377
  readonly acceptedAt: string | null;
37338
37378
  readonly completedAt: string | null;
37339
37379
  };
37340
- }>;
37380
+ }>>;
37341
37381
  };
37342
37382
  declare const makePromiseSpokeClient: (options: HubApiCredentialOptions) => Promise<{
37343
37383
  readonly client: PromiseSpokeClient;
@@ -37345,4 +37385,4 @@ declare const makePromiseSpokeClient: (options: HubApiCredentialOptions) => Prom
37345
37385
  readonly hubClient: PromiseHubApiClient;
37346
37386
  }>;
37347
37387
 
37348
- export { AddressSchema, type AdminSession, AdminSessionSchema, type BadRequestError, BadRequestErrorSchema, type BootstrapOrganizationMemberSourceAgentInput, type BootstrapOrganizationMemberSourceAgentResponse, BootstrapOrganizationMemberSourceAgentResponseSchema, BootstrapOrganizationMemberSourceAgentSchema, type BulkGetOrganizationMembersInput, BulkGetOrganizationMembersSchema, type BulkOrganizationMembersBasicResponse, BulkOrganizationMembersBasicResponseSchema, type BulkOrganizationMembersMedResponse, BulkOrganizationMembersMedResponseSchema, type BulkOrganizationMembersResponse, BulkOrganizationMembersResponseSchema, type BulkOrganizationMembersResponseUnion, BulkOrganizationMembersResponseUnionSchema, type CompleteOnsiteVoucherCommandInput, CompleteOnsiteVoucherCommandSchema, type ConflictError, ConflictErrorSchema, type CreateGuestInput, CreateGuestSchema, type CreateMemberInput, CreateMemberSchema, type CreateOrganizationInput, type CreateOrganizationMemberSourceCsvUploadInput, type CreateOrganizationMemberSourceCsvUploadResponse, CreateOrganizationMemberSourceCsvUploadResponseSchema, CreateOrganizationMemberSourceCsvUploadSchema, type CreateOrganizationPointTypeInput, CreateOrganizationPointTypeSchema, type CreateOrganizationProductOptionInput, CreateOrganizationProductOptionSchema, type CreateOrganizationProductWebhookInput, CreateOrganizationProductWebhookSchema, CreateOrganizationSchema, type CreateServiceClientInput, CreateServiceClientSchema, type CsvUploadReadiness, CsvUploadReadinessSchema, DateOnlySchema, type DeletePayload, DeletePayloadSchema, type DeleteServiceClientInput, DeleteServiceClientSchema, type ForbiddenError, ForbiddenErrorSchema, type Guest, type GuestContactMatch, GuestContactMatchSchema, GuestSchema, HubApi, type HubApiClient, type HubApiClientOptions, type HubApiCredentialOptions, type ImportedMemberRecord, ImportedMemberRecordSchema, IssuedPrivateKeySchema, MarketingPreferencesSchema, type Member, type MemberBasic, type MemberBasicResponse, MemberBasicResponseSchema, MemberBasicSchema, type MemberContactMatch, MemberContactMatchSchema, type MemberFullResponse, MemberFullResponseSchema, type MemberMed, type MemberMedResponse, MemberMedResponseSchema, MemberMedSchema, type MemberPointBalance, MemberPointBalanceSchema, type MemberPointBalancesResponse, MemberPointBalancesResponseSchema, type MemberResponse, type MemberResponseMode, MemberResponseModeSchema, MemberResponseSchema, MemberSchema, MemberSourceSecretNameSchema, type MemberStatusCredits, MemberStatusCreditsSchema, type NotFoundError, NotFoundErrorSchema, type OnsiteAgentCommand, OnsiteAgentCommandSchema, type OnsiteAgentCompleteMemberCreateInput, OnsiteAgentCompleteMemberCreateSchema, type OnsiteAgentCompleteMemberLookupInput, OnsiteAgentCompleteMemberLookupSchema, type OnsiteAgentCompleteMemberRenewalInput, OnsiteAgentCompleteMemberRenewalSchema, type OnsiteAgentCompleteMemberUpdateInput, OnsiteAgentCompleteMemberUpdateSchema, OnsiteAgentCompleteRunErrorSchema, type OnsiteAgentCompleteRunInput, OnsiteAgentCompleteRunSchema, type OnsiteAgentCsvUploadTarget, OnsiteAgentCsvUploadTargetSchema, type OnsiteAgentHeartbeatInput, type OnsiteAgentHeartbeatResponse, OnsiteAgentHeartbeatResponseSchema, OnsiteAgentHeartbeatSchema, type OnsiteAgentIngestLiveFbiBatchInput, OnsiteAgentIngestLiveFbiBatchSchema, type OnsiteAgentMemberCreateCommand, OnsiteAgentMemberCreateCommandSchema, type OnsiteAgentMemberLookupCommand, OnsiteAgentMemberLookupCommandSchema, type OnsiteAgentMemberRenewalCommand, OnsiteAgentMemberRenewalCommandSchema, type OnsiteAgentMemberUpdateCommand, OnsiteAgentMemberUpdateCommandSchema, type OnsiteResourceCallRequest, OnsiteResourceCallRequestSchema, type OnsiteResourceCallResponse, OnsiteResourceCallResponseSchema, type OnsiteResourceClient, type OnsiteResourceMemberCallResponse, OnsiteResourceMemberCallResponseSchema, type OnsiteResourceVoucherCallResponse, OnsiteResourceVoucherCallResponseSchema, type OnsiteVoucherCommand, OnsiteVoucherCommandSchema, type Organization, type OrganizationMemberGender, OrganizationMemberGenderSchema, type OrganizationMemberMembershipType, OrganizationMemberMembershipTypeSchema, type OrganizationMemberRatingGrade, OrganizationMemberRatingGradeSchema, type OrganizationMemberSource, type OrganizationMemberSourceAgent, OrganizationMemberSourceAgentSchema, type OrganizationMemberSourceCommand, OrganizationMemberSourceCommandSchema, type OrganizationMemberSourceCsvImport, OrganizationMemberSourceCsvImportSchema, type OrganizationMemberSourceCsvMapping, OrganizationMemberSourceCsvMappingSchema, OrganizationMemberSourceSchema, OrganizationMemberSourceSecretInputSchema, type OrganizationMemberSourceWebhook, OrganizationMemberSourceWebhookSchema, type OrganizationMemberSourceWebhookUpsertResponse, OrganizationMemberSourceWebhookUpsertResponseSchema, type OrganizationMemberSyncRun, type OrganizationMemberSyncRunError, OrganizationMemberSyncRunErrorSchema, OrganizationMemberSyncRunSchema, OrganizationMemberSyncRunSummarySchema, type OrganizationMemberTitle, OrganizationMemberTitleSchema, type OrganizationMembersListResponse, type OrganizationMembersSearchField, OrganizationMembersSearchFieldSchema, type OrganizationMembersSortField, OrganizationMembersSortFieldSchema, type OrganizationMembersStatusFilter, OrganizationMembersStatusFilterSchema, type OrganizationPeopleContactLookupResponse, OrganizationPeopleContactLookupResponseSchema, type OrganizationPointType, OrganizationPointTypeSchema, type OrganizationPointTypesResponse, OrganizationPointTypesResponseSchema, type OrganizationProductOption, OrganizationProductOptionSchema, type OrganizationProductWebhook, OrganizationProductWebhookSchema, type OrganizationProductWebhookUpsertResponse, OrganizationProductWebhookUpsertResponseSchema, OrganizationSchema, type OrganizationVoucherCommand, OrganizationVoucherCommandSchema, type OrganizationVoucherProvider, OrganizationVoucherProviderSchema, OrganizationVoucherProviderSecretInputSchema, OrganizationVoucherProviderSecretNameSchema, type PaginatedGuests, PaginatedGuestsSchema, type PaginatedOrganizationMemberGenders, PaginatedOrganizationMemberGendersSchema, type PaginatedOrganizationMemberMembershipTypes, PaginatedOrganizationMemberMembershipTypesSchema, type PaginatedOrganizationMemberRatingGrades, PaginatedOrganizationMemberRatingGradesSchema, type PaginatedOrganizationMemberSourceCommands, PaginatedOrganizationMemberSourceCommandsSchema, type PaginatedOrganizationMemberSyncRuns, PaginatedOrganizationMemberSyncRunsSchema, type PaginatedOrganizationMemberTitles, PaginatedOrganizationMemberTitlesSchema, type PaginatedOrganizationMembers, type PaginatedOrganizationMembersBasic, PaginatedOrganizationMembersBasicSchema, type PaginatedOrganizationMembersMed, PaginatedOrganizationMembersMedSchema, PaginatedOrganizationMembersResponseSchema, PaginatedOrganizationMembersSchema, type PaginatedOrganizationProductOptions, PaginatedOrganizationProductOptionsSchema, type PaginatedOrganizationProductWebhooks, PaginatedOrganizationProductWebhooksSchema, type PaginatedOrganizations, PaginatedOrganizationsSchema, type PaginatedServiceClients, PaginatedServiceClientsSchema, PresignedPostSchema, type PromiseClient, type PromiseHubApiClient, type PromiseSpokeClient, type RequestSourceManagedMemberCreateInput, RequestSourceManagedMemberCreateSchema, type RequestSourceManagedMemberRenewalInput, RequestSourceManagedMemberRenewalSchema, type RequestSourceManagedMemberUpdateInput, RequestSourceManagedMemberUpdateSchema, type RequestVoucherIssueInput, RequestVoucherIssueSchema, type ServiceClient, ServiceClientSchema, type SortDirection, SortDirectionSchema, type SourceManagedMemberLookupBy, SourceManagedMemberLookupBySchema, type SourceManagedMemberLookupCommandPayload, SourceManagedMemberLookupCommandPayloadSchema, type SourceManagedMemberRenewalCommandPayload, SourceManagedMemberRenewalCommandPayloadSchema, SourceManagedMemberUpdateCommandPayloadSchema, TimestampSchema, type TriggerOrganizationMemberSyncInput, TriggerOrganizationMemberSyncSchema, type UnauthorizedError, UnauthorizedErrorSchema, type UpdateGuestInput, UpdateGuestSchema, type UpdateMemberInput, UpdateMemberSchema, type UpdateMemberStatusCreditsInput, UpdateMemberStatusCreditsSchema, type UpdateOrganizationInput, type UpdateOrganizationPointTypeInput, UpdateOrganizationPointTypeSchema, type UpdateOrganizationProductWebhookInput, UpdateOrganizationProductWebhookSchema, UpdateOrganizationSchema, type UpdateServiceClientInput, UpdateServiceClientSchema, type UpsertMemberPointBalanceInput, UpsertMemberPointBalanceSchema, type UpsertOrganizationMemberSourceCsvMappingInput, UpsertOrganizationMemberSourceCsvMappingSchema, type UpsertOrganizationMemberSourceInput, UpsertOrganizationMemberSourceSchema, type UpsertOrganizationMemberSourceWebhookInput, UpsertOrganizationMemberSourceWebhookSchema, type UpsertOrganizationProductWebhookInput, UpsertOrganizationProductWebhookSchema, type UpsertOrganizationVoucherProviderInput, UpsertOrganizationVoucherProviderSchema, adminRoles, guestStatuses, makeBadRequest, makeConflict, makeForbidden, makeHubApiClient, makeNotFound, makeOnsiteResourceClient, makePromiseHubApiClient, makePromiseOnsiteResourceClient, makePromiseServiceHubApiClient, makePromiseSpokeClient, makeServiceHubApiClient, makeSpokeClient, makeUnauthorized, memberComputedStatuses, memberCreatedOrigins, memberPreferredContactMethods, memberRecordModes, memberStatuses, organizationMemberSourceAgentStatuses, organizationMemberSourceBatchTransports, organizationMemberSourceCommandKinds, organizationMemberSourceCommandStatuses, organizationMemberSourceCsvImportStatuses, organizationMemberSourceLiveTransports, organizationMemberSourceManualTransports, organizationMemberSourceStatuses, organizationMemberSourceVendors, organizationMemberSourceWebhookDeliveryStatuses, organizationMemberSourceWebhookStatuses, organizationMemberSyncModes, organizationMemberSyncRunStatuses, organizationMemberSyncTransports, organizationMemberSyncTriggerKinds, organizationPointTypeStatuses, organizationProductWebhookDeliveryStatuses, organizationProductWebhookStatuses, organizationStatuses, organizationVoucherCommandKinds, organizationVoucherCommandStatuses, organizationVoucherProviderProviders, organizationVoucherProviderStatuses, organizationVoucherProviderTransports, resolveHubApiBaseUrl };
37388
+ export { AddressSchema, type AdminSession, AdminSessionSchema, type BadRequestError, BadRequestErrorSchema, type BootstrapOrganizationMemberSourceAgentInput, type BootstrapOrganizationMemberSourceAgentResponse, BootstrapOrganizationMemberSourceAgentResponseSchema, BootstrapOrganizationMemberSourceAgentSchema, type BulkGetOrganizationMembersInput, BulkGetOrganizationMembersSchema, type BulkOrganizationMembersBasicResponse, BulkOrganizationMembersBasicResponseSchema, type BulkOrganizationMembersMedResponse, BulkOrganizationMembersMedResponseSchema, type BulkOrganizationMembersResponse, BulkOrganizationMembersResponseSchema, type BulkOrganizationMembersResponseUnion, BulkOrganizationMembersResponseUnionSchema, type CompleteOnsiteVoucherCommandInput, CompleteOnsiteVoucherCommandSchema, type ConflictError, ConflictErrorSchema, type CreateGuestInput, CreateGuestSchema, type CreateMemberInput, CreateMemberSchema, type CreateOrganizationInput, type CreateOrganizationMemberSourceCsvUploadInput, type CreateOrganizationMemberSourceCsvUploadResponse, CreateOrganizationMemberSourceCsvUploadResponseSchema, CreateOrganizationMemberSourceCsvUploadSchema, type CreateOrganizationPointTypeInput, CreateOrganizationPointTypeSchema, type CreateOrganizationProductOptionInput, CreateOrganizationProductOptionSchema, type CreateOrganizationProductWebhookInput, CreateOrganizationProductWebhookSchema, CreateOrganizationSchema, type CreateServiceClientInput, CreateServiceClientSchema, type CsvUploadReadiness, CsvUploadReadinessSchema, DateOnlySchema, type DeletePayload, DeletePayloadSchema, type DeleteServiceClientInput, DeleteServiceClientSchema, type ForbiddenError, ForbiddenErrorSchema, type Guest, type GuestContactMatch, GuestContactMatchSchema, GuestSchema, HubApi, type HubApiClient, type HubApiClientOptions, type HubApiCredentialOptions, type ImportedMemberRecord, ImportedMemberRecordSchema, IssuedPrivateKeySchema, MarketingPreferencesSchema, type Member, type MemberBasic, type MemberBasicResponse, MemberBasicResponseSchema, MemberBasicSchema, type MemberContactMatch, MemberContactMatchSchema, type MemberFullResponse, MemberFullResponseSchema, type MemberMed, type MemberMedResponse, MemberMedResponseSchema, MemberMedSchema, type MemberPointBalance, MemberPointBalanceSchema, type MemberPointBalancesResponse, MemberPointBalancesResponseSchema, type MemberResponse, type MemberResponseMode, MemberResponseModeSchema, MemberResponseSchema, MemberSchema, MemberSourceSecretNameSchema, type MemberStatusCredits, MemberStatusCreditsSchema, type NotFoundError, NotFoundErrorSchema, type OnsiteAgentCommand, OnsiteAgentCommandSchema, type OnsiteAgentCompleteMemberCreateInput, OnsiteAgentCompleteMemberCreateSchema, type OnsiteAgentCompleteMemberLookupInput, OnsiteAgentCompleteMemberLookupSchema, type OnsiteAgentCompleteMemberRenewalInput, OnsiteAgentCompleteMemberRenewalSchema, type OnsiteAgentCompleteMemberUpdateInput, OnsiteAgentCompleteMemberUpdateSchema, OnsiteAgentCompleteRunErrorSchema, type OnsiteAgentCompleteRunInput, OnsiteAgentCompleteRunSchema, type OnsiteAgentCsvUploadTarget, OnsiteAgentCsvUploadTargetSchema, type OnsiteAgentHeartbeatInput, type OnsiteAgentHeartbeatResponse, OnsiteAgentHeartbeatResponseSchema, OnsiteAgentHeartbeatSchema, type OnsiteAgentIngestLiveFbiBatchInput, OnsiteAgentIngestLiveFbiBatchSchema, type OnsiteAgentMemberCreateCommand, OnsiteAgentMemberCreateCommandSchema, type OnsiteAgentMemberLookupCommand, OnsiteAgentMemberLookupCommandSchema, type OnsiteAgentMemberRenewalCommand, OnsiteAgentMemberRenewalCommandSchema, type OnsiteAgentMemberUpdateCommand, OnsiteAgentMemberUpdateCommandSchema, type OnsiteResourceCallRequest, OnsiteResourceCallRequestSchema, type OnsiteResourceCallResponse, OnsiteResourceCallResponseSchema, type OnsiteResourceClient, type OnsiteResourceMemberCallResponse, OnsiteResourceMemberCallResponseSchema, type OnsiteResourceVoucherCallResponse, OnsiteResourceVoucherCallResponseSchema, type OnsiteVoucherCommand, OnsiteVoucherCommandSchema, type Organization, type OrganizationMemberGender, OrganizationMemberGenderSchema, type OrganizationMemberMembershipType, OrganizationMemberMembershipTypeSchema, type OrganizationMemberRatingGrade, OrganizationMemberRatingGradeSchema, type OrganizationMemberSource, type OrganizationMemberSourceAgent, OrganizationMemberSourceAgentSchema, type OrganizationMemberSourceCommand, OrganizationMemberSourceCommandSchema, type OrganizationMemberSourceCsvImport, OrganizationMemberSourceCsvImportSchema, type OrganizationMemberSourceCsvMapping, OrganizationMemberSourceCsvMappingSchema, OrganizationMemberSourceSchema, OrganizationMemberSourceSecretInputSchema, type OrganizationMemberSourceWebhook, OrganizationMemberSourceWebhookSchema, type OrganizationMemberSourceWebhookUpsertResponse, OrganizationMemberSourceWebhookUpsertResponseSchema, type OrganizationMemberSyncRun, type OrganizationMemberSyncRunError, OrganizationMemberSyncRunErrorSchema, OrganizationMemberSyncRunSchema, OrganizationMemberSyncRunSummarySchema, type OrganizationMemberTitle, OrganizationMemberTitleSchema, type OrganizationMembersListResponse, type OrganizationMembersSearchField, OrganizationMembersSearchFieldSchema, type OrganizationMembersSortField, OrganizationMembersSortFieldSchema, type OrganizationMembersStatusFilter, OrganizationMembersStatusFilterSchema, type OrganizationPeopleContactLookupResponse, OrganizationPeopleContactLookupResponseSchema, type OrganizationPointType, OrganizationPointTypeSchema, type OrganizationPointTypesResponse, OrganizationPointTypesResponseSchema, type OrganizationProductOption, OrganizationProductOptionSchema, type OrganizationProductWebhook, OrganizationProductWebhookSchema, type OrganizationProductWebhookUpsertResponse, OrganizationProductWebhookUpsertResponseSchema, OrganizationSchema, type OrganizationVoucherCommand, OrganizationVoucherCommandSchema, type OrganizationVoucherProvider, OrganizationVoucherProviderSchema, OrganizationVoucherProviderSecretInputSchema, OrganizationVoucherProviderSecretNameSchema, type PaginatedGuests, PaginatedGuestsSchema, type PaginatedOrganizationMemberGenders, PaginatedOrganizationMemberGendersSchema, type PaginatedOrganizationMemberMembershipTypes, PaginatedOrganizationMemberMembershipTypesSchema, type PaginatedOrganizationMemberRatingGrades, PaginatedOrganizationMemberRatingGradesSchema, type PaginatedOrganizationMemberSourceCommands, PaginatedOrganizationMemberSourceCommandsSchema, type PaginatedOrganizationMemberSyncRuns, PaginatedOrganizationMemberSyncRunsSchema, type PaginatedOrganizationMemberTitles, PaginatedOrganizationMemberTitlesSchema, type PaginatedOrganizationMembers, type PaginatedOrganizationMembersBasic, PaginatedOrganizationMembersBasicSchema, type PaginatedOrganizationMembersMed, PaginatedOrganizationMembersMedSchema, PaginatedOrganizationMembersResponseSchema, PaginatedOrganizationMembersSchema, type PaginatedOrganizationProductOptions, PaginatedOrganizationProductOptionsSchema, type PaginatedOrganizationProductWebhooks, PaginatedOrganizationProductWebhooksSchema, type PaginatedOrganizations, PaginatedOrganizationsSchema, type PaginatedServiceClients, PaginatedServiceClientsSchema, PresignedPostSchema, type PromiseClient, type PromiseHubApiClient, type PromiseSpokeClient, type RequestSourceManagedMemberCreateInput, RequestSourceManagedMemberCreateSchema, type RequestSourceManagedMemberRenewalInput, RequestSourceManagedMemberRenewalSchema, type RequestSourceManagedMemberUpdateInput, RequestSourceManagedMemberUpdateSchema, type RequestVoucherIssueInput, RequestVoucherIssueSchema, type ServiceClient, ServiceClientSchema, type SortDirection, SortDirectionSchema, type SourceManagedMemberLookupBy, SourceManagedMemberLookupBySchema, type SourceManagedMemberLookupCommandPayload, SourceManagedMemberLookupCommandPayloadSchema, type SourceManagedMemberRenewalCommandPayload, SourceManagedMemberRenewalCommandPayloadSchema, SourceManagedMemberUpdateCommandPayloadSchema, SpokeHubApiError, type SpokeHubApiErrorBody, SpokeHubClientError, type SpokeHubErrorKind, type SpokeHubHttpErrorContext, type SpokeHubResult, TimestampSchema, type TriggerOrganizationMemberSyncInput, TriggerOrganizationMemberSyncSchema, type UnauthorizedError, UnauthorizedErrorSchema, type UpdateGuestInput, UpdateGuestSchema, type UpdateMemberInput, UpdateMemberSchema, type UpdateMemberStatusCreditsInput, UpdateMemberStatusCreditsSchema, type UpdateOrganizationInput, type UpdateOrganizationPointTypeInput, UpdateOrganizationPointTypeSchema, type UpdateOrganizationProductWebhookInput, UpdateOrganizationProductWebhookSchema, UpdateOrganizationSchema, type UpdateServiceClientInput, UpdateServiceClientSchema, type UpsertMemberPointBalanceInput, UpsertMemberPointBalanceSchema, type UpsertOrganizationMemberSourceCsvMappingInput, UpsertOrganizationMemberSourceCsvMappingSchema, type UpsertOrganizationMemberSourceInput, UpsertOrganizationMemberSourceSchema, type UpsertOrganizationMemberSourceWebhookInput, UpsertOrganizationMemberSourceWebhookSchema, type UpsertOrganizationProductWebhookInput, UpsertOrganizationProductWebhookSchema, type UpsertOrganizationVoucherProviderInput, UpsertOrganizationVoucherProviderSchema, adminRoles, guestStatuses, makeBadRequest, makeConflict, makeForbidden, makeHubApiClient, makeNotFound, makeOnsiteResourceClient, makePromiseHubApiClient, makePromiseOnsiteResourceClient, makePromiseServiceHubApiClient, makePromiseSpokeClient, makeServiceHubApiClient, makeSpokeClient, makeUnauthorized, memberComputedStatuses, memberCreatedOrigins, memberPreferredContactMethods, memberRecordModes, memberStatuses, organizationMemberSourceAgentStatuses, organizationMemberSourceBatchTransports, organizationMemberSourceCommandKinds, organizationMemberSourceCommandStatuses, organizationMemberSourceCsvImportStatuses, organizationMemberSourceLiveTransports, organizationMemberSourceManualTransports, organizationMemberSourceStatuses, organizationMemberSourceVendors, organizationMemberSourceWebhookDeliveryStatuses, organizationMemberSourceWebhookStatuses, organizationMemberSyncModes, organizationMemberSyncRunStatuses, organizationMemberSyncTransports, organizationMemberSyncTriggerKinds, organizationPointTypeStatuses, organizationProductWebhookDeliveryStatuses, organizationProductWebhookStatuses, organizationStatuses, organizationVoucherCommandKinds, organizationVoucherCommandStatuses, organizationVoucherProviderProviders, organizationVoucherProviderStatuses, organizationVoucherProviderTransports, resolveHubApiBaseUrl };