samva 0.56.0 → 0.56.1
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/AGENTS.md +2 -2
- package/README.md +9 -8
- package/dist/effect/accounts.js +9 -10
- package/dist/effect/agents.js +16 -17
- package/dist/effect/analytics.js +9 -10
- package/dist/effect/api-keys.js +11 -12
- package/dist/effect/approval-requests.js +7 -8
- package/dist/effect/attachments.js +7 -8
- package/dist/effect/brands.js +9 -10
- package/dist/effect/campaigns.js +18 -19
- package/dist/effect/contact-groups.js +13 -14
- package/dist/effect/contacts.js +29 -30
- package/dist/effect/conversations.js +16 -17
- package/dist/effect/custom-fields.js +7 -8
- package/dist/effect/descriptors/accounts.d.ts +50 -52
- package/dist/effect/descriptors/accounts.js +50 -52
- package/dist/effect/descriptors/agents.d.ts +113 -115
- package/dist/effect/descriptors/agents.js +120 -122
- package/dist/effect/descriptors/analytics.d.ts +47 -49
- package/dist/effect/descriptors/analytics.js +42 -44
- package/dist/effect/descriptors/api-keys.d.ts +69 -71
- package/dist/effect/descriptors/api-keys.js +73 -75
- package/dist/effect/descriptors/approval-requests.d.ts +34 -36
- package/dist/effect/descriptors/approval-requests.js +36 -38
- package/dist/effect/descriptors/attachments.d.ts +34 -36
- package/dist/effect/descriptors/attachments.js +36 -38
- package/dist/effect/descriptors/brands.d.ts +51 -53
- package/dist/effect/descriptors/brands.js +53 -55
- package/dist/effect/descriptors/campaigns.d.ts +130 -132
- package/dist/effect/descriptors/campaigns.js +137 -139
- package/dist/effect/descriptors/contact-groups.d.ts +86 -88
- package/dist/effect/descriptors/contact-groups.js +90 -92
- package/dist/effect/descriptors/contacts.d.ts +242 -244
- package/dist/effect/descriptors/contacts.js +227 -229
- package/dist/effect/descriptors/conversations.d.ts +114 -116
- package/dist/effect/descriptors/conversations.js +123 -125
- package/dist/effect/descriptors/custom-fields.d.ts +33 -35
- package/dist/effect/descriptors/custom-fields.js +33 -35
- package/dist/effect/descriptors/email.d.ts +623 -625
- package/dist/effect/descriptors/email.js +562 -578
- package/dist/effect/descriptors/events.d.ts +15 -17
- package/dist/effect/descriptors/events.js +14 -16
- package/dist/effect/descriptors/feedback.d.ts +7 -9
- package/dist/effect/descriptors/feedback.js +3 -3
- package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
- package/dist/effect/descriptors/integrations-catalog.js +142 -144
- package/dist/effect/descriptors/integrations.d.ts +60 -62
- package/dist/effect/descriptors/integrations.js +63 -65
- package/dist/effect/descriptors/journeys.d.ts +123 -125
- package/dist/effect/descriptors/journeys.js +133 -135
- package/dist/effect/descriptors/logs.d.ts +16 -18
- package/dist/effect/descriptors/logs.js +16 -18
- package/dist/effect/descriptors/mailboxes.d.ts +780 -782
- package/dist/effect/descriptors/mailboxes.js +795 -797
- package/dist/effect/descriptors/media.d.ts +43 -45
- package/dist/effect/descriptors/media.js +46 -48
- package/dist/effect/descriptors/messages.d.ts +86 -88
- package/dist/effect/descriptors/messages.js +83 -92
- package/dist/effect/descriptors/namespaces.d.ts +96 -98
- package/dist/effect/descriptors/namespaces.js +107 -109
- package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
- package/dist/effect/descriptors/newsletter-domains.js +39 -41
- package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
- package/dist/effect/descriptors/newsletter-issues.js +109 -111
- package/dist/effect/descriptors/newsletters.d.ts +43 -45
- package/dist/effect/descriptors/newsletters.js +46 -48
- package/dist/effect/descriptors/operations.d.ts +25 -27
- package/dist/effect/descriptors/operations.js +26 -28
- package/dist/effect/descriptors/organizations.d.ts +96 -98
- package/dist/effect/descriptors/organizations.js +86 -88
- package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
- package/dist/effect/descriptors/phone-numbers.js +40 -42
- package/dist/effect/descriptors/policies.d.ts +26 -28
- package/dist/effect/descriptors/policies.js +29 -31
- package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
- package/dist/effect/descriptors/scheduled-messages.js +43 -45
- package/dist/effect/descriptors/subscriptions.d.ts +7 -9
- package/dist/effect/descriptors/subscriptions.js +3 -3
- package/dist/effect/descriptors/template-registrations.d.ts +26 -28
- package/dist/effect/descriptors/template-registrations.js +29 -31
- package/dist/effect/descriptors/template-share-links.d.ts +44 -46
- package/dist/effect/descriptors/template-share-links.js +49 -51
- package/dist/effect/descriptors/templates.d.ts +361 -363
- package/dist/effect/descriptors/templates.js +348 -350
- package/dist/effect/descriptors/topic-forms.d.ts +44 -46
- package/dist/effect/descriptors/topic-forms.js +49 -51
- package/dist/effect/descriptors/topics.d.ts +77 -79
- package/dist/effect/descriptors/topics.js +80 -82
- package/dist/effect/descriptors/webhooks.d.ts +96 -98
- package/dist/effect/descriptors/webhooks.js +103 -105
- package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
- package/dist/effect/descriptors/whats-app-flows.js +90 -92
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
- package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
- package/dist/effect/descriptors/whats-app.d.ts +110 -112
- package/dist/effect/descriptors/whats-app.js +111 -113
- package/dist/effect/descriptors/whoami.d.ts +7 -9
- package/dist/effect/descriptors/whoami.js +3 -3
- package/dist/effect/email.js +66 -67
- package/dist/effect/events.js +5 -6
- package/dist/effect/feedback.js +4 -4
- package/dist/effect/generated/accounts.d.ts +144 -142
- package/dist/effect/generated/accounts.js +14 -9
- package/dist/effect/generated/agents.d.ts +1502 -1493
- package/dist/effect/generated/agents.js +28 -16
- package/dist/effect/generated/analytics.d.ts +55 -53
- package/dist/effect/generated/analytics.js +14 -9
- package/dist/effect/generated/api-keys.d.ts +216 -212
- package/dist/effect/generated/api-keys.js +18 -11
- package/dist/effect/generated/approval-requests.d.ts +60 -60
- package/dist/effect/generated/approval-requests.js +10 -7
- package/dist/effect/generated/attachments.d.ts +32 -32
- package/dist/effect/generated/attachments.js +10 -7
- package/dist/effect/generated/brands.d.ts +179 -177
- package/dist/effect/generated/brands.js +14 -9
- package/dist/effect/generated/campaigns.d.ts +1083 -1072
- package/dist/effect/generated/campaigns.js +32 -18
- package/dist/effect/generated/contact-events.d.ts +3 -6
- package/dist/effect/generated/contact-events.js +4 -4
- package/dist/effect/generated/contact-groups.d.ts +186 -180
- package/dist/effect/generated/contact-groups.js +22 -13
- package/dist/effect/generated/contacts.d.ts +1565 -1545
- package/dist/effect/generated/contacts.js +50 -27
- package/dist/effect/generated/conversations.d.ts +340 -331
- package/dist/effect/generated/conversations.js +28 -16
- package/dist/effect/generated/custom-fields.d.ts +63 -63
- package/dist/effect/generated/custom-fields.js +10 -7
- package/dist/effect/generated/email.d.ts +2731 -2671
- package/dist/effect/generated/email.js +130 -67
- package/dist/effect/generated/events.d.ts +160 -162
- package/dist/effect/generated/events.js +6 -5
- package/dist/effect/generated/feedback.d.ts +3 -6
- package/dist/effect/generated/feedback.js +4 -4
- package/dist/effect/generated/index.d.ts +174 -45
- package/dist/effect/generated/integrations-catalog.d.ts +459 -446
- package/dist/effect/generated/integrations-catalog.js +36 -20
- package/dist/effect/generated/integrations.d.ts +155 -152
- package/dist/effect/generated/integrations.js +16 -10
- package/dist/effect/generated/journeys.d.ts +864 -854
- package/dist/effect/generated/journeys.js +30 -17
- package/dist/effect/generated/logs.d.ts +147 -149
- package/dist/effect/generated/logs.js +6 -5
- package/dist/effect/generated/mailboxes.d.ts +7271 -7196
- package/dist/effect/generated/mailboxes.js +160 -82
- package/dist/effect/generated/media.d.ts +77 -76
- package/dist/effect/generated/media.js +12 -8
- package/dist/effect/generated/messages.d.ts +1092 -1086
- package/dist/effect/generated/messages.js +22 -13
- package/dist/effect/generated/namespaces.d.ts +184 -177
- package/dist/effect/generated/namespaces.js +24 -14
- package/dist/effect/generated/newsletter-domains.d.ts +57 -57
- package/dist/effect/generated/newsletter-domains.js +10 -7
- package/dist/effect/generated/newsletter-issues.d.ts +225 -218
- package/dist/effect/generated/newsletter-issues.js +24 -14
- package/dist/effect/generated/newsletters.d.ts +46 -45
- package/dist/effect/generated/newsletters.js +12 -8
- package/dist/effect/generated/operations.d.ts +79 -80
- package/dist/effect/generated/operations.js +8 -6
- package/dist/effect/generated/organizations.d.ts +438 -430
- package/dist/effect/generated/organizations.js +26 -15
- package/dist/effect/generated/phone-numbers.d.ts +87 -86
- package/dist/effect/generated/phone-numbers.js +12 -8
- package/dist/effect/generated/policies.d.ts +64 -65
- package/dist/effect/generated/policies.js +8 -6
- package/dist/effect/generated/scheduled-messages.d.ts +66 -65
- package/dist/effect/generated/scheduled-messages.js +12 -8
- package/dist/effect/generated/shared.d.ts +33 -33
- package/dist/effect/generated/shared.js +61 -61
- package/dist/effect/generated/subscriptions.d.ts +3 -6
- package/dist/effect/generated/subscriptions.js +4 -4
- package/dist/effect/generated/template-registrations.d.ts +135 -136
- package/dist/effect/generated/template-registrations.js +8 -6
- package/dist/effect/generated/template-share-links.d.ts +25 -24
- package/dist/effect/generated/template-share-links.js +12 -8
- package/dist/effect/generated/templates.d.ts +2678 -2645
- package/dist/effect/generated/templates.js +76 -40
- package/dist/effect/generated/topic-forms.d.ts +47 -46
- package/dist/effect/generated/topic-forms.js +12 -8
- package/dist/effect/generated/topics.d.ts +204 -199
- package/dist/effect/generated/topics.js +20 -12
- package/dist/effect/generated/webhooks.d.ts +268 -261
- package/dist/effect/generated/webhooks.js +24 -14
- package/dist/effect/generated/whats-app-flows.d.ts +250 -244
- package/dist/effect/generated/whats-app-flows.js +22 -13
- package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
- package/dist/effect/generated/whats-app-setup-links.js +10 -7
- package/dist/effect/generated/whats-app.d.ts +439 -430
- package/dist/effect/generated/whats-app.js +28 -16
- package/dist/effect/generated/whoami.d.ts +3 -6
- package/dist/effect/generated/whoami.js +4 -4
- package/dist/effect/integrations-catalog.js +20 -21
- package/dist/effect/integrations.js +10 -11
- package/dist/effect/internal/client.d.ts +2 -1
- package/dist/effect/internal/client.js +3 -3
- package/dist/effect/internal/email-sender.js +5 -4
- package/dist/effect/internal/operation.d.ts +11 -7
- package/dist/effect/internal/operation.js +17 -12
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/journeys.js +17 -18
- package/dist/effect/logs.js +5 -6
- package/dist/effect/mailboxes.js +82 -83
- package/dist/effect/media.js +8 -9
- package/dist/effect/messages.js +12 -13
- package/dist/effect/namespaces.js +14 -15
- package/dist/effect/newsletter-domains.js +7 -8
- package/dist/effect/newsletter-issues.js +14 -15
- package/dist/effect/newsletters.js +8 -9
- package/dist/effect/operations.js +6 -7
- package/dist/effect/organizations.js +15 -16
- package/dist/effect/phone-numbers.js +8 -9
- package/dist/effect/policies.js +6 -7
- package/dist/effect/runtime.js +3 -3
- package/dist/effect/scheduled-messages.js +8 -9
- package/dist/effect/subscriptions.js +4 -4
- package/dist/effect/template-registrations.js +6 -7
- package/dist/effect/template-share-links.js +8 -9
- package/dist/effect/templates.js +40 -41
- package/dist/effect/topic-forms.js +8 -9
- package/dist/effect/topics.js +12 -13
- package/dist/effect/webhooks.js +14 -15
- package/dist/effect/whatsapp-flows.js +13 -14
- package/dist/effect/whatsapp-setup-links.js +7 -8
- package/dist/effect/whatsapp.js +16 -17
- package/dist/effect/whoami.js +4 -4
- package/dist/package.json.js +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiEndpoint
|
|
1
|
+
import { HttpApiEndpoint } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { AccountStatus, ApiKeySecurityMiddleware, ContactId, ContactReferenceSummary, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, InternalError, JsonObject, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
4
4
|
export type AccountInfo = {
|
|
@@ -354,12 +354,33 @@ export type AccountsListContactConnections500 = InternalError;
|
|
|
354
354
|
export declare const AccountsListContactConnections500: typeof InternalError;
|
|
355
355
|
export type AccountsListContactConnections504 = GatewayTimeoutError;
|
|
356
356
|
export declare const AccountsListContactConnections504: typeof GatewayTimeoutError;
|
|
357
|
-
declare const
|
|
358
|
-
readonly
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
357
|
+
export declare const AccountsListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"accountsList", "GET", "/v1/accounts", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
358
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
359
|
+
readonly provider: Schema.String;
|
|
360
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
361
|
+
readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
362
|
+
readonly webhooks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
363
|
+
readonly app: Schema.String;
|
|
364
|
+
readonly url: Schema.String;
|
|
365
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
366
|
+
readonly signatureHeader: Schema.String;
|
|
367
|
+
readonly deliveryIdHeader: Schema.String;
|
|
368
|
+
readonly secretSetup: Schema.String;
|
|
369
|
+
}>>>;
|
|
370
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
|
|
371
|
+
readonly info: Schema.Struct<{
|
|
372
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
373
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
374
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
375
|
+
readonly verifiedEmail: Schema.optionalKey<Schema.String>;
|
|
376
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
377
|
+
}>;
|
|
378
|
+
readonly grantedScopes: Schema.$Array<Schema.String>;
|
|
379
|
+
readonly connectedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
380
|
+
readonly connectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
381
|
+
readonly createdAt: Schema.String;
|
|
382
|
+
readonly updatedAt: Schema.String;
|
|
383
|
+
}>>;
|
|
363
384
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
364
385
|
readonly _tag: "ForbiddenError";
|
|
365
386
|
readonly message: string;
|
|
@@ -408,26 +429,6 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
408
429
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
409
430
|
readonly message: Schema.String;
|
|
410
431
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
411
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
412
|
-
readonly _tag: "ResourceNotFoundError";
|
|
413
|
-
readonly resource: string;
|
|
414
|
-
readonly id: string;
|
|
415
|
-
readonly message: string;
|
|
416
|
-
}, readonly [Schema.Struct<{
|
|
417
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
418
|
-
readonly resource: Schema.String;
|
|
419
|
-
readonly id: Schema.String;
|
|
420
|
-
readonly message: Schema.String;
|
|
421
|
-
}>], {
|
|
422
|
-
readonly _tag: "ResourceNotFoundError";
|
|
423
|
-
readonly resource: string;
|
|
424
|
-
readonly id: string;
|
|
425
|
-
readonly message: string;
|
|
426
|
-
}>, Schema.Struct<{
|
|
427
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
428
|
-
readonly resource: Schema.String;
|
|
429
|
-
readonly id: Schema.String;
|
|
430
|
-
readonly message: Schema.String;
|
|
431
432
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
432
433
|
readonly _tag: "UnauthorizedError";
|
|
433
434
|
readonly message: string;
|
|
@@ -460,17 +461,34 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
460
461
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
461
462
|
readonly message: Schema.String;
|
|
462
463
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
463
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
464
|
-
|
|
465
|
-
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
466
|
-
readonly credentials: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
467
|
-
readonly app: Schema.optionalKey<Schema.String>;
|
|
468
|
-
readonly accountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
|
|
469
|
-
readonly expectedHosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
470
|
-
readonly returnTo: Schema.String;
|
|
471
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
464
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
465
|
+
export declare const AccountsGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"accountsGet", "GET", "/v1/accounts/:accountId", Schema.toCodecStringTree<Schema.Struct<{
|
|
472
466
|
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
473
|
-
|
|
467
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
468
|
+
readonly provider: Schema.String;
|
|
469
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
470
|
+
readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
471
|
+
readonly webhooks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
472
|
+
readonly app: Schema.String;
|
|
473
|
+
readonly url: Schema.String;
|
|
474
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
475
|
+
readonly signatureHeader: Schema.String;
|
|
476
|
+
readonly deliveryIdHeader: Schema.String;
|
|
477
|
+
readonly secretSetup: Schema.String;
|
|
478
|
+
}>>>;
|
|
479
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
|
|
480
|
+
readonly info: Schema.Struct<{
|
|
481
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
482
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
483
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
484
|
+
readonly verifiedEmail: Schema.optionalKey<Schema.String>;
|
|
485
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
486
|
+
}>;
|
|
487
|
+
readonly grantedScopes: Schema.$Array<Schema.String>;
|
|
488
|
+
readonly connectedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
489
|
+
readonly connectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
490
|
+
readonly createdAt: Schema.String;
|
|
491
|
+
readonly updatedAt: Schema.String;
|
|
474
492
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
475
493
|
readonly _tag: "ForbiddenError";
|
|
476
494
|
readonly message: string;
|
|
@@ -571,33 +589,12 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
571
589
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
572
590
|
readonly message: Schema.String;
|
|
573
591
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
574
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
592
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
593
|
+
export declare const AccountsRemoveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"accountsRemove", "DELETE", "/v1/accounts/:accountId", Schema.toCodecStringTree<Schema.Struct<{
|
|
575
594
|
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
576
595
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
577
|
-
readonly provider: Schema.String;
|
|
578
|
-
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
579
596
|
readonly id: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
580
|
-
readonly
|
|
581
|
-
readonly app: Schema.String;
|
|
582
|
-
readonly url: Schema.String;
|
|
583
|
-
readonly events: Schema.$Array<Schema.String>;
|
|
584
|
-
readonly signatureHeader: Schema.String;
|
|
585
|
-
readonly deliveryIdHeader: Schema.String;
|
|
586
|
-
readonly secretSetup: Schema.String;
|
|
587
|
-
}>>>;
|
|
588
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
|
|
589
|
-
readonly info: Schema.Struct<{
|
|
590
|
-
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
591
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
592
|
-
readonly email: Schema.optionalKey<Schema.String>;
|
|
593
|
-
readonly verifiedEmail: Schema.optionalKey<Schema.String>;
|
|
594
|
-
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
595
|
-
}>;
|
|
596
|
-
readonly grantedScopes: Schema.$Array<Schema.String>;
|
|
597
|
-
readonly connectedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
598
|
-
readonly connectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
599
|
-
readonly createdAt: Schema.String;
|
|
600
|
-
readonly updatedAt: Schema.String;
|
|
597
|
+
readonly deleted: Schema.Literal<true>;
|
|
601
598
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
602
599
|
readonly _tag: "ForbiddenError";
|
|
603
600
|
readonly message: string;
|
|
@@ -698,33 +695,13 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
698
695
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
699
696
|
readonly message: Schema.String;
|
|
700
697
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
701
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
readonly url: Schema.String;
|
|
709
|
-
readonly events: Schema.$Array<Schema.String>;
|
|
710
|
-
readonly signatureHeader: Schema.String;
|
|
711
|
-
readonly deliveryIdHeader: Schema.String;
|
|
712
|
-
readonly secretSetup: Schema.String;
|
|
713
|
-
}>>>;
|
|
714
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
|
|
715
|
-
readonly info: Schema.Struct<{
|
|
716
|
-
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
717
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
718
|
-
readonly email: Schema.optionalKey<Schema.String>;
|
|
719
|
-
readonly verifiedEmail: Schema.optionalKey<Schema.String>;
|
|
720
|
-
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
721
|
-
}>;
|
|
722
|
-
readonly grantedScopes: Schema.$Array<Schema.String>;
|
|
723
|
-
readonly connectedBy: Schema.Union<readonly [Schema.brand<Schema.String, "UserId">, Schema.Null]>;
|
|
724
|
-
readonly connectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
725
|
-
readonly createdAt: Schema.String;
|
|
726
|
-
readonly updatedAt: Schema.String;
|
|
727
|
-
}>>;
|
|
698
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
699
|
+
export declare const AccountsCheckEndpoint: HttpApiEndpoint.HttpApiEndpoint<"accountsCheck", "POST", "/v1/accounts/:accountId/check", Schema.toCodecStringTree<Schema.Struct<{
|
|
700
|
+
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
701
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
702
|
+
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
703
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"healthy">, Schema.Literal<"needsReconnect">, Schema.Literal<"forbidden">, Schema.Literal<"unavailable">]>;
|
|
704
|
+
readonly checkedAt: Schema.String;
|
|
728
705
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
729
706
|
readonly _tag: "ForbiddenError";
|
|
730
707
|
readonly message: string;
|
|
@@ -773,6 +750,26 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
773
750
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
774
751
|
readonly message: Schema.String;
|
|
775
752
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
753
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
754
|
+
readonly _tag: "ResourceNotFoundError";
|
|
755
|
+
readonly resource: string;
|
|
756
|
+
readonly id: string;
|
|
757
|
+
readonly message: string;
|
|
758
|
+
}, readonly [Schema.Struct<{
|
|
759
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
760
|
+
readonly resource: Schema.String;
|
|
761
|
+
readonly id: Schema.String;
|
|
762
|
+
readonly message: Schema.String;
|
|
763
|
+
}>], {
|
|
764
|
+
readonly _tag: "ResourceNotFoundError";
|
|
765
|
+
readonly resource: string;
|
|
766
|
+
readonly id: string;
|
|
767
|
+
readonly message: string;
|
|
768
|
+
}>, Schema.Struct<{
|
|
769
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
770
|
+
readonly resource: Schema.String;
|
|
771
|
+
readonly id: Schema.String;
|
|
772
|
+
readonly message: Schema.String;
|
|
776
773
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
777
774
|
readonly _tag: "UnauthorizedError";
|
|
778
775
|
readonly message: string;
|
|
@@ -805,31 +802,18 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
805
802
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
806
803
|
readonly message: Schema.String;
|
|
807
804
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
808
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
readonly
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
821
|
-
readonly provider: Schema.optionalKey<Schema.String>;
|
|
822
|
-
readonly info: Schema.Struct<{
|
|
823
|
-
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
824
|
-
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
825
|
-
readonly email: Schema.optionalKey<Schema.String>;
|
|
826
|
-
readonly verifiedEmail: Schema.optionalKey<Schema.String>;
|
|
827
|
-
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
828
|
-
}>;
|
|
829
|
-
readonly lastUsedAt: Schema.String;
|
|
830
|
-
readonly idleExpiresAt: Schema.String;
|
|
831
|
-
readonly createdAt: Schema.String;
|
|
832
|
-
}>>;
|
|
805
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
806
|
+
export declare const AccountsConnectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"accountsConnect", "POST", "/v1/accounts/connect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
807
|
+
readonly provider: Schema.String;
|
|
808
|
+
readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
|
|
809
|
+
readonly credentials: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
810
|
+
readonly app: Schema.optionalKey<Schema.String>;
|
|
811
|
+
readonly accountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
|
|
812
|
+
readonly expectedHosts: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
813
|
+
readonly returnTo: Schema.String;
|
|
814
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
815
|
+
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
816
|
+
readonly authorizationUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
833
817
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
834
818
|
readonly _tag: "ForbiddenError";
|
|
835
819
|
readonly message: string;
|
|
@@ -878,6 +862,26 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
878
862
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
879
863
|
readonly message: Schema.String;
|
|
880
864
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
865
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
866
|
+
readonly _tag: "ResourceNotFoundError";
|
|
867
|
+
readonly resource: string;
|
|
868
|
+
readonly id: string;
|
|
869
|
+
readonly message: string;
|
|
870
|
+
}, readonly [Schema.Struct<{
|
|
871
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
872
|
+
readonly resource: Schema.String;
|
|
873
|
+
readonly id: Schema.String;
|
|
874
|
+
readonly message: Schema.String;
|
|
875
|
+
}>], {
|
|
876
|
+
readonly _tag: "ResourceNotFoundError";
|
|
877
|
+
readonly resource: string;
|
|
878
|
+
readonly id: string;
|
|
879
|
+
readonly message: string;
|
|
880
|
+
}>, Schema.Struct<{
|
|
881
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
882
|
+
readonly resource: Schema.String;
|
|
883
|
+
readonly id: Schema.String;
|
|
884
|
+
readonly message: Schema.String;
|
|
881
885
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
882
886
|
readonly _tag: "UnauthorizedError";
|
|
883
887
|
readonly message: string;
|
|
@@ -910,11 +914,32 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
910
914
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
911
915
|
readonly message: Schema.String;
|
|
912
916
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
913
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
readonly
|
|
917
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
918
|
+
export declare const AccountsListContactConnectionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"accountsListContactConnections", "GET", "/v1/accounts/contact-connections", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
919
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
920
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
921
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
922
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
923
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
924
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
925
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
926
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
927
|
+
readonly name: Schema.String;
|
|
928
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
929
|
+
}>, Schema.Null]>;
|
|
930
|
+
readonly accountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
931
|
+
readonly provider: Schema.optionalKey<Schema.String>;
|
|
932
|
+
readonly info: Schema.Struct<{
|
|
933
|
+
readonly externalId: Schema.optionalKey<Schema.String>;
|
|
934
|
+
readonly displayName: Schema.optionalKey<Schema.String>;
|
|
935
|
+
readonly email: Schema.optionalKey<Schema.String>;
|
|
936
|
+
readonly verifiedEmail: Schema.optionalKey<Schema.String>;
|
|
937
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
938
|
+
}>;
|
|
939
|
+
readonly lastUsedAt: Schema.String;
|
|
940
|
+
readonly idleExpiresAt: Schema.String;
|
|
941
|
+
readonly createdAt: Schema.String;
|
|
942
|
+
}>>;
|
|
918
943
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
919
944
|
readonly _tag: "ForbiddenError";
|
|
920
945
|
readonly message: string;
|
|
@@ -963,26 +988,6 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
963
988
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
964
989
|
readonly message: Schema.String;
|
|
965
990
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
966
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
967
|
-
readonly _tag: "ResourceNotFoundError";
|
|
968
|
-
readonly resource: string;
|
|
969
|
-
readonly id: string;
|
|
970
|
-
readonly message: string;
|
|
971
|
-
}, readonly [Schema.Struct<{
|
|
972
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
973
|
-
readonly resource: Schema.String;
|
|
974
|
-
readonly id: Schema.String;
|
|
975
|
-
readonly message: Schema.String;
|
|
976
|
-
}>], {
|
|
977
|
-
readonly _tag: "ResourceNotFoundError";
|
|
978
|
-
readonly resource: string;
|
|
979
|
-
readonly id: string;
|
|
980
|
-
readonly message: string;
|
|
981
|
-
}>, Schema.Struct<{
|
|
982
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
983
|
-
readonly resource: Schema.String;
|
|
984
|
-
readonly id: Schema.String;
|
|
985
|
-
readonly message: Schema.String;
|
|
986
991
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
987
992
|
readonly _tag: "UnauthorizedError";
|
|
988
993
|
readonly message: string;
|
|
@@ -1015,7 +1020,4 @@ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"Accounts", HttpApiE
|
|
|
1015
1020
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1016
1021
|
readonly message: Schema.String;
|
|
1017
1022
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1018
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never
|
|
1019
|
-
export declare class AccountsGroup extends AccountsGroup_base {
|
|
1020
|
-
}
|
|
1021
|
-
export {};
|
|
1023
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiEndpoint,
|
|
1
|
+
import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { AccountStatus, ApiKeySecurityMiddleware, ContactId, ContactReferenceSummary, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, InternalError, JsonObject, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/accounts.ts
|
|
@@ -120,7 +120,7 @@ const AccountsListContactConnections403 = ForbiddenError;
|
|
|
120
120
|
const AccountsListContactConnections422 = ValidationError;
|
|
121
121
|
const AccountsListContactConnections500 = InternalError;
|
|
122
122
|
const AccountsListContactConnections504 = GatewayTimeoutError;
|
|
123
|
-
|
|
123
|
+
const AccountsListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("accountsList", "/v1/accounts", {
|
|
124
124
|
success: AccountsList200,
|
|
125
125
|
error: [
|
|
126
126
|
AccountsList400.pipe(HttpApiSchema.status(400)),
|
|
@@ -130,7 +130,8 @@ var AccountsGroup = class extends HttpApiGroup.make("Accounts").add(HttpApiEndpo
|
|
|
130
130
|
AccountsList500,
|
|
131
131
|
AccountsList504.pipe(HttpApiSchema.status(504))
|
|
132
132
|
]
|
|
133
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.list").annotate(OpenApi.Summary, "List accounts").annotate(OpenApi.Description, "Returns the organization's connected provider accounts, newest first.")
|
|
133
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.list").annotate(OpenApi.Summary, "List accounts").annotate(OpenApi.Description, "Returns the organization's connected provider accounts, newest first."))();
|
|
134
|
+
const AccountsGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("accountsGet", "/v1/accounts/:accountId", {
|
|
134
135
|
params: AccountsGetPathParams,
|
|
135
136
|
success: AccountsGet200,
|
|
136
137
|
error: [
|
|
@@ -142,7 +143,8 @@ var AccountsGroup = class extends HttpApiGroup.make("Accounts").add(HttpApiEndpo
|
|
|
142
143
|
AccountsGet500,
|
|
143
144
|
AccountsGet504.pipe(HttpApiSchema.status(504))
|
|
144
145
|
]
|
|
145
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.get").annotate(OpenApi.Summary, "Get an account").annotate(OpenApi.Description, "Returns one account with its status and granted scopes. A Shopify account missing requested scopes, including read_products and read_legal_policies, needs reconnecting.")
|
|
146
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.get").annotate(OpenApi.Summary, "Get an account").annotate(OpenApi.Description, "Returns one account with its status and granted scopes. A Shopify account missing requested scopes, including read_products and read_legal_policies, needs reconnecting."))();
|
|
147
|
+
const AccountsRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("accountsRemove", "/v1/accounts/:accountId", {
|
|
146
148
|
params: AccountsRemovePathParams,
|
|
147
149
|
success: AccountsRemove200,
|
|
148
150
|
error: [
|
|
@@ -154,7 +156,8 @@ var AccountsGroup = class extends HttpApiGroup.make("Accounts").add(HttpApiEndpo
|
|
|
154
156
|
AccountsRemove500,
|
|
155
157
|
AccountsRemove504.pipe(HttpApiSchema.status(504))
|
|
156
158
|
]
|
|
157
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.remove").annotate(OpenApi.Summary, "Disconnect an account").annotate(OpenApi.Description, "Revokes Samva's access at the provider and deletes the account with the integrations that link it, and their grants from every agent's draft. A published agent version that granted them can no longer use them; publish the agent to drop the grants.")
|
|
159
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.remove").annotate(OpenApi.Summary, "Disconnect an account").annotate(OpenApi.Description, "Revokes Samva's access at the provider and deletes the account with the integrations that link it, and their grants from every agent's draft. A published agent version that granted them can no longer use them; publish the agent to drop the grants."))();
|
|
160
|
+
const AccountsCheckEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("accountsCheck", "/v1/accounts/:accountId/check", {
|
|
158
161
|
params: AccountsCheckPathParams,
|
|
159
162
|
success: AccountsCheck200,
|
|
160
163
|
error: [
|
|
@@ -166,7 +169,8 @@ var AccountsGroup = class extends HttpApiGroup.make("Accounts").add(HttpApiEndpo
|
|
|
166
169
|
AccountsCheck500,
|
|
167
170
|
AccountsCheck504.pipe(HttpApiSchema.status(504))
|
|
168
171
|
]
|
|
169
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.check").annotate(OpenApi.Summary, "Check an account").annotate(OpenApi.Description, "Checks the saved credential on demand. A provider outage does not require reconnecting; refused access or missing requested scopes does.")
|
|
172
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.check").annotate(OpenApi.Summary, "Check an account").annotate(OpenApi.Description, "Checks the saved credential on demand. A provider outage does not require reconnecting; refused access or missing requested scopes does."))();
|
|
173
|
+
const AccountsConnectEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("accountsConnect", "/v1/accounts/connect", {
|
|
170
174
|
payload: AccountsConnectRequestJson,
|
|
171
175
|
success: AccountsConnect201.pipe(HttpApiSchema.status(201)),
|
|
172
176
|
error: [
|
|
@@ -178,7 +182,8 @@ var AccountsGroup = class extends HttpApiGroup.make("Accounts").add(HttpApiEndpo
|
|
|
178
182
|
AccountsConnect500,
|
|
179
183
|
AccountsConnect504.pipe(HttpApiSchema.status(504))
|
|
180
184
|
]
|
|
181
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.connect").annotate(OpenApi.Summary, "Connect an account").annotate(OpenApi.Description, "Connects a provider account. OAuth returns an authorization URL; credential connections return null after validation. Name an app to ask for its scopes and install it when the connection finishes. Pass accountId to reconnect an account for renewed access or additional scopes. Connecting or reconnecting Shopify with read_products and read_legal_policies creates its Shopify store knowledge source.")
|
|
185
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.connect").annotate(OpenApi.Summary, "Connect an account").annotate(OpenApi.Description, "Connects a provider account. OAuth returns an authorization URL; credential connections return null after validation. Name an app to ask for its scopes and install it when the connection finishes. Pass accountId to reconnect an account for renewed access or additional scopes. Connecting or reconnecting Shopify with read_products and read_legal_policies creates its Shopify store knowledge source."))();
|
|
186
|
+
const AccountsListContactConnectionsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("accountsListContactConnections", "/v1/accounts/contact-connections", {
|
|
182
187
|
query: AccountsListContactConnectionsQuery,
|
|
183
188
|
success: AccountsListContactConnections200,
|
|
184
189
|
error: [
|
|
@@ -189,7 +194,7 @@ var AccountsGroup = class extends HttpApiGroup.make("Accounts").add(HttpApiEndpo
|
|
|
189
194
|
AccountsListContactConnections500,
|
|
190
195
|
AccountsListContactConnections504.pipe(HttpApiSchema.status(504))
|
|
191
196
|
]
|
|
192
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.listContactConnections").annotate(OpenApi.Summary, "List contact connections").annotate(OpenApi.Description, "Lists the contact credentials connected for this organization. An administrator can disconnect each account by accountId."))
|
|
193
|
-
export { AccountHealthStatus, AccountInfo, AccountsCheck200, AccountsCheck400, AccountsCheck401, AccountsCheck403, AccountsCheck404, AccountsCheck422, AccountsCheck500, AccountsCheck504, AccountsCheckPathParams, AccountsConnect201, AccountsConnect400, AccountsConnect401, AccountsConnect403, AccountsConnect404, AccountsConnect422, AccountsConnect500, AccountsConnect504, AccountsConnectRequestJson, AccountsGet200, AccountsGet400, AccountsGet401, AccountsGet403, AccountsGet404, AccountsGet422, AccountsGet500, AccountsGet504,
|
|
197
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "accounts.listContactConnections").annotate(OpenApi.Summary, "List contact connections").annotate(OpenApi.Description, "Lists the contact credentials connected for this organization. An administrator can disconnect each account by accountId."))();
|
|
198
|
+
export { AccountHealthStatus, AccountInfo, AccountsCheck200, AccountsCheck400, AccountsCheck401, AccountsCheck403, AccountsCheck404, AccountsCheck422, AccountsCheck500, AccountsCheck504, AccountsCheckEndpoint, AccountsCheckPathParams, AccountsConnect201, AccountsConnect400, AccountsConnect401, AccountsConnect403, AccountsConnect404, AccountsConnect422, AccountsConnect500, AccountsConnect504, AccountsConnectEndpoint, AccountsConnectRequestJson, AccountsGet200, AccountsGet400, AccountsGet401, AccountsGet403, AccountsGet404, AccountsGet422, AccountsGet500, AccountsGet504, AccountsGetEndpoint, AccountsGetPathParams, AccountsList200, AccountsList400, AccountsList401, AccountsList403, AccountsList422, AccountsList500, AccountsList504, AccountsListContactConnections200, AccountsListContactConnections400, AccountsListContactConnections401, AccountsListContactConnections403, AccountsListContactConnections422, AccountsListContactConnections500, AccountsListContactConnections504, AccountsListContactConnectionsEndpoint, AccountsListContactConnectionsQuery, AccountsListEndpoint, AccountsRemove200, AccountsRemove400, AccountsRemove401, AccountsRemove403, AccountsRemove404, AccountsRemove422, AccountsRemove500, AccountsRemove504, AccountsRemoveEndpoint, AccountsRemovePathParams, ConnectAccountResponse, DeleteAccountResponse, IntegrationAccount, IntegrationAccountHealth, IntegrationAccountList };
|
|
194
199
|
|
|
195
200
|
//# sourceMappingURL=accounts.js.map
|