samva 0.46.0 → 0.46.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/README.md +1 -1
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +2 -2
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/accounts.js +2 -1
- package/dist/effect/agents.d.ts +16 -16
- package/dist/effect/agents.js +2 -1
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/approval-requests.js +2 -1
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +45 -45
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +33 -33
- package/dist/effect/contacts.js +3 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +119 -0
- package/dist/effect/descriptors/agents.js +117 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +226 -0
- package/dist/effect/descriptors/contacts.js +214 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/extension-installations.d.ts +90 -0
- package/dist/effect/descriptors/extension-installations.js +90 -0
- package/dist/effect/descriptors/extensions.d.ts +50 -0
- package/dist/effect/descriptors/extensions.js +50 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +2 -1
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +9 -9
- package/dist/effect/generated/agents.d.ts +1 -1
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +13 -13
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +230 -230
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +49 -49
- package/dist/effect/generated/conversations.d.ts +1 -1
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/extension-installations.d.ts +1 -1
- package/dist/effect/generated/extensions.d.ts +1 -1
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +87 -87
- package/dist/effect/generated/integrations-catalog.d.ts +3 -3
- package/dist/effect/generated/integrations.d.ts +15 -15
- package/dist/effect/generated/journeys.d.ts +81 -81
- package/dist/effect/generated/mailboxes.d.ts +1 -1
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +1 -1
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +147 -147
- package/dist/effect/generated/shared.d.ts +1 -1
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -1
- package/dist/effect/generated/template-share-links.d.ts +1 -1
- package/dist/effect/generated/templates.d.ts +1 -1
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/index.d.ts +47 -47
- package/dist/effect/integrations-catalog.d.ts +3 -3
- package/dist/effect/integrations-catalog.js +2 -1
- package/dist/effect/integrations.d.ts +11 -11
- package/dist/effect/integrations.js +2 -1
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +21 -21
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +20 -20
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +123 -123
- package/dist/effect/mailboxes.js +2 -1
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +23 -23
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/template-share-links.js +2 -1
- package/dist/effect/templates.d.ts +46 -46
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/mailbox/dispatch.d.ts +2 -2
- package/dist/mailbox/index.d.ts +4 -4
- package/dist/mailbox/test.d.ts +2 -2
- package/dist/mailbox/types.d.ts +2 -2
- package/dist/mailbox/webhook.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +10 -10
- package/dist/promises/errors.gen.d.ts +1 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/package.json +9 -9
- package/dist/service-map.js +0 -830
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, } from "./generated/shared";
|
|
1
|
+
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, } from "./generated/shared.js";
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
3
|
readonly limit?: number | null | undefined;
|
|
4
4
|
readonly cursor?: string | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const list: ((input?: {
|
|
|
9
9
|
readonly projectId?: string | undefined;
|
|
10
10
|
readonly namespaceId?: string | undefined;
|
|
11
11
|
readonly shared?: boolean | null | undefined;
|
|
12
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesList">) & {
|
|
12
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesList">) & {
|
|
13
13
|
readonly pages: (input?: {
|
|
14
14
|
readonly limit?: number | null | undefined;
|
|
15
15
|
readonly cursor?: string | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const list: ((input?: {
|
|
|
47
47
|
readonly updatedAt: string;
|
|
48
48
|
}[];
|
|
49
49
|
readonly nextCursor: string | null;
|
|
50
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
50
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
51
51
|
readonly items: (input?: {
|
|
52
52
|
readonly limit?: number | null | undefined;
|
|
53
53
|
readonly cursor?: string | undefined;
|
|
@@ -82,7 +82,7 @@ export declare const list: ((input?: {
|
|
|
82
82
|
readonly lastUsedAt: string | null;
|
|
83
83
|
readonly createdAt: string;
|
|
84
84
|
readonly updatedAt: string;
|
|
85
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
85
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
86
86
|
};
|
|
87
87
|
export declare const create: (input?: {
|
|
88
88
|
readonly name?: string | null | undefined;
|
|
@@ -95,11 +95,11 @@ export declare const create: (input?: {
|
|
|
95
95
|
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
96
96
|
readonly namespaceId?: string | null | undefined;
|
|
97
97
|
readonly shared?: boolean | null | undefined;
|
|
98
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreate">;
|
|
98
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesCreate">;
|
|
99
99
|
export declare const listFamilies: ((input?: {
|
|
100
100
|
readonly limit?: number | null | undefined;
|
|
101
101
|
readonly cursor?: string | undefined;
|
|
102
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesListFamilies">) & {
|
|
102
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesListFamilies">) & {
|
|
103
103
|
readonly pages: (input?: {
|
|
104
104
|
readonly limit?: number | null | undefined;
|
|
105
105
|
readonly cursor?: string | undefined;
|
|
@@ -120,7 +120,7 @@ export declare const listFamilies: ((input?: {
|
|
|
120
120
|
readonly updatedAt: string;
|
|
121
121
|
}[];
|
|
122
122
|
readonly nextCursor: string | null;
|
|
123
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
123
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
124
124
|
readonly items: (input?: {
|
|
125
125
|
readonly limit?: number | null | undefined;
|
|
126
126
|
readonly cursor?: string | undefined;
|
|
@@ -138,36 +138,36 @@ export declare const listFamilies: ((input?: {
|
|
|
138
138
|
}[];
|
|
139
139
|
readonly createdAt: string;
|
|
140
140
|
readonly updatedAt: string;
|
|
141
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
141
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
142
142
|
};
|
|
143
143
|
export declare const createFamily: (input: {
|
|
144
144
|
readonly name: string;
|
|
145
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFamily">;
|
|
145
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesCreateFamily">;
|
|
146
146
|
export declare const getFamily: (input: {
|
|
147
147
|
readonly id: string;
|
|
148
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetFamily">;
|
|
148
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesGetFamily">;
|
|
149
149
|
export declare const renameFamily: (input: {
|
|
150
150
|
readonly id: string;
|
|
151
151
|
readonly name: string;
|
|
152
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRenameFamily">;
|
|
152
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesRenameFamily">;
|
|
153
153
|
export declare const deleteFamily: (input: {
|
|
154
154
|
readonly id: string;
|
|
155
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteFamily">;
|
|
155
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesDeleteFamily">;
|
|
156
156
|
export declare const createFamilyFromTemplate: (input: {
|
|
157
157
|
readonly templateId: string;
|
|
158
158
|
readonly name: string;
|
|
159
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFamilyFromTemplate">;
|
|
159
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesCreateFamilyFromTemplate">;
|
|
160
160
|
export declare const attachFamilyMember: (input: {
|
|
161
161
|
readonly id: string;
|
|
162
162
|
readonly templateId: string;
|
|
163
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAttachFamilyMember">;
|
|
163
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesAttachFamilyMember">;
|
|
164
164
|
export declare const detachFamilyMember: (input: {
|
|
165
165
|
readonly id: string;
|
|
166
166
|
readonly templateId: string;
|
|
167
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDetachFamilyMember">;
|
|
167
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesDetachFamilyMember">;
|
|
168
168
|
export declare const getById: (input: {
|
|
169
169
|
readonly id: string;
|
|
170
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetById">;
|
|
170
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesGetById">;
|
|
171
171
|
export declare const update: (input: {
|
|
172
172
|
readonly id: string;
|
|
173
173
|
readonly data: {
|
|
@@ -187,26 +187,26 @@ export declare const update: (input: {
|
|
|
187
187
|
} | null | undefined;
|
|
188
188
|
readonly shared?: boolean | null | undefined;
|
|
189
189
|
};
|
|
190
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesUpdate">;
|
|
190
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesUpdate">;
|
|
191
191
|
declare const deleteTemplate: (input: {
|
|
192
192
|
readonly id: string;
|
|
193
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDelete">;
|
|
193
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesDelete">;
|
|
194
194
|
export { deleteTemplate as delete };
|
|
195
195
|
export declare const suggestStarters: (input: {
|
|
196
196
|
readonly brief: string;
|
|
197
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSuggestStarters">;
|
|
197
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesSuggestStarters">;
|
|
198
198
|
export declare const createFromBrief: (input: {
|
|
199
199
|
readonly brief: string;
|
|
200
200
|
readonly name?: string | null | undefined;
|
|
201
201
|
readonly galleryTemplateId?: string | null | undefined;
|
|
202
202
|
readonly useBrand?: boolean | null | undefined;
|
|
203
203
|
readonly namespaceId?: string | null | undefined;
|
|
204
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFromBrief">;
|
|
204
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesCreateFromBrief">;
|
|
205
205
|
export declare const createFromWebsite: (input: {
|
|
206
206
|
readonly url: string;
|
|
207
207
|
readonly name?: string | null | undefined;
|
|
208
208
|
readonly namespaceId?: string | null | undefined;
|
|
209
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFromWebsite">;
|
|
209
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesCreateFromWebsite">;
|
|
210
210
|
export declare const addEntry: (input: {
|
|
211
211
|
readonly id: string;
|
|
212
212
|
readonly entryPath: string;
|
|
@@ -214,13 +214,13 @@ export declare const addEntry: (input: {
|
|
|
214
214
|
readonly slug: string;
|
|
215
215
|
readonly description?: string | null | undefined;
|
|
216
216
|
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
217
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAddEntry">;
|
|
217
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesAddEntry">;
|
|
218
218
|
export declare const deleteProject: (input: {
|
|
219
219
|
readonly id: string;
|
|
220
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteProject">;
|
|
220
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesDeleteProject">;
|
|
221
221
|
export declare const openWorkspace: (input: {
|
|
222
222
|
readonly id: string;
|
|
223
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesOpenWorkspace">;
|
|
223
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesOpenWorkspace">;
|
|
224
224
|
export declare const patchWorkspace: (input: {
|
|
225
225
|
readonly id: string;
|
|
226
226
|
readonly expectedRevision: string;
|
|
@@ -228,18 +228,18 @@ export declare const patchWorkspace: (input: {
|
|
|
228
228
|
readonly path: string;
|
|
229
229
|
readonly content: string | null;
|
|
230
230
|
}[];
|
|
231
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesPatchWorkspace">;
|
|
231
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesPatchWorkspace">;
|
|
232
232
|
export declare const diffWorkspace: (input: {
|
|
233
233
|
readonly id: string;
|
|
234
234
|
readonly expectedRevision: string;
|
|
235
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDiffWorkspace">;
|
|
235
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesDiffWorkspace">;
|
|
236
236
|
export declare const putWorkspaceAsset: (input: {
|
|
237
237
|
readonly id: string;
|
|
238
238
|
readonly expectedRevision: string;
|
|
239
239
|
readonly path: string;
|
|
240
240
|
readonly contentBase64: string;
|
|
241
241
|
readonly replace: boolean;
|
|
242
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesPutWorkspaceAsset">;
|
|
242
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesPutWorkspaceAsset">;
|
|
243
243
|
export declare const resolveWorkspaceConflict: (input: {
|
|
244
244
|
readonly id: string;
|
|
245
245
|
readonly expectedRevision: string;
|
|
@@ -247,31 +247,31 @@ export declare const resolveWorkspaceConflict: (input: {
|
|
|
247
247
|
readonly resolution: "draft" | "main" | {
|
|
248
248
|
readonly content: string | null;
|
|
249
249
|
};
|
|
250
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesResolveWorkspaceConflict">;
|
|
250
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesResolveWorkspaceConflict">;
|
|
251
251
|
export declare const saveWorkspace: (input: {
|
|
252
252
|
readonly id: string;
|
|
253
253
|
readonly expectedRevision: string;
|
|
254
254
|
readonly expectedHead: string;
|
|
255
255
|
readonly message: string;
|
|
256
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSaveWorkspace">;
|
|
256
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesSaveWorkspace">;
|
|
257
257
|
export declare const restoreWorkspace: (input: {
|
|
258
258
|
readonly id: string;
|
|
259
259
|
readonly expectedRevision: string;
|
|
260
260
|
readonly commit: string;
|
|
261
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRestoreWorkspace">;
|
|
261
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesRestoreWorkspace">;
|
|
262
262
|
export declare const workspaceHistory: (input: {
|
|
263
263
|
readonly id: string;
|
|
264
264
|
readonly limit?: number | null | undefined;
|
|
265
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesWorkspaceHistory">;
|
|
265
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesWorkspaceHistory">;
|
|
266
266
|
export declare const checkWorkspace: (input: {
|
|
267
267
|
readonly id: string;
|
|
268
268
|
readonly expectedRevision: string;
|
|
269
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCheckWorkspace">;
|
|
269
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesCheckWorkspace">;
|
|
270
270
|
export declare const renderWorkspaceFixture: (input: {
|
|
271
271
|
readonly id: string;
|
|
272
272
|
readonly expectedRevision: string;
|
|
273
273
|
readonly fixture: string;
|
|
274
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRenderWorkspaceFixture">;
|
|
274
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesRenderWorkspaceFixture">;
|
|
275
275
|
export declare const publish: (input: {
|
|
276
276
|
readonly id: string;
|
|
277
277
|
readonly projectId: string;
|
|
@@ -279,11 +279,11 @@ export declare const publish: (input: {
|
|
|
279
279
|
readonly entryPath: string;
|
|
280
280
|
readonly expectedWorkspaceRevision: string;
|
|
281
281
|
readonly ifCurrentPublicationId?: string | null | undefined;
|
|
282
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesPublish">;
|
|
282
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesPublish">;
|
|
283
283
|
export declare const getPublication: (input: {
|
|
284
284
|
readonly id: string;
|
|
285
285
|
readonly publicationId: string;
|
|
286
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetPublication">;
|
|
286
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesGetPublication">;
|
|
287
287
|
export declare const renderPublication: (input: {
|
|
288
288
|
readonly id: string;
|
|
289
289
|
readonly publicationId: string;
|
|
@@ -316,12 +316,12 @@ export declare const renderPublication: (input: {
|
|
|
316
316
|
};
|
|
317
317
|
readonly locale?: string | undefined;
|
|
318
318
|
readonly timeZone?: string | undefined;
|
|
319
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRenderPublication">;
|
|
319
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesRenderPublication">;
|
|
320
320
|
export declare const listInputContracts: ((input: {
|
|
321
321
|
readonly id: string;
|
|
322
322
|
readonly limit?: number | null | undefined;
|
|
323
323
|
readonly cursor?: string | undefined;
|
|
324
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesListInputContracts">) & {
|
|
324
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesListInputContracts">) & {
|
|
325
325
|
readonly pages: (input: {
|
|
326
326
|
readonly id: string;
|
|
327
327
|
readonly limit?: number | null | undefined;
|
|
@@ -334,12 +334,12 @@ export declare const listInputContracts: ((input: {
|
|
|
334
334
|
readonly version: number;
|
|
335
335
|
readonly validationDigest: string;
|
|
336
336
|
readonly schema: {
|
|
337
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
337
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
338
338
|
};
|
|
339
339
|
readonly createdAt: string;
|
|
340
340
|
}[];
|
|
341
341
|
readonly nextCursor: string | null;
|
|
342
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
342
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
343
343
|
readonly items: (input: {
|
|
344
344
|
readonly id: string;
|
|
345
345
|
readonly limit?: number | null | undefined;
|
|
@@ -351,22 +351,22 @@ export declare const listInputContracts: ((input: {
|
|
|
351
351
|
readonly version: number;
|
|
352
352
|
readonly validationDigest: string;
|
|
353
353
|
readonly schema: {
|
|
354
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
354
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
355
355
|
};
|
|
356
356
|
readonly createdAt: string;
|
|
357
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
357
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
358
358
|
};
|
|
359
359
|
export declare const getInputContract: (input: {
|
|
360
360
|
readonly id: string;
|
|
361
361
|
readonly inputContractId: string;
|
|
362
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetInputContract">;
|
|
362
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesGetInputContract">;
|
|
363
363
|
export declare const getGitRepository: (input: {
|
|
364
364
|
readonly id: string;
|
|
365
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetGitRepository">;
|
|
365
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesGetGitRepository">;
|
|
366
366
|
export declare const issueGitCredential: (input: {
|
|
367
367
|
readonly id: string;
|
|
368
368
|
readonly scope: "read" | "write";
|
|
369
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesIssueGitCredential">;
|
|
369
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesIssueGitCredential">;
|
|
370
370
|
export declare const attachWorkspaceResource: (input: {
|
|
371
371
|
readonly id: string;
|
|
372
372
|
readonly expectedRevision: string;
|
|
@@ -379,9 +379,9 @@ export declare const attachWorkspaceResource: (input: {
|
|
|
379
379
|
readonly contentBase64: string;
|
|
380
380
|
}[];
|
|
381
381
|
};
|
|
382
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAttachWorkspaceResource">;
|
|
382
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesAttachWorkspaceResource">;
|
|
383
383
|
export declare const removeWorkspaceResource: (input: {
|
|
384
384
|
readonly id: string;
|
|
385
385
|
readonly resourceId: string;
|
|
386
386
|
readonly expectedRevision: string;
|
|
387
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRemoveWorkspaceResource">;
|
|
387
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"templatesRemoveWorkspaceResource">;
|
package/dist/effect/templates.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { CreateTemplatePayload, UpdateTemplatePayload } from "./generated/shared.js";
|
|
3
3
|
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { templatesOperations } from "./descriptors/templates.js";
|
|
4
5
|
import { TemplatesGroup } from "./generated/templates.js";
|
|
5
6
|
// src/effect/templates.ts
|
|
6
7
|
var templates_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -44,7 +45,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
44
45
|
update: () => update,
|
|
45
46
|
workspaceHistory: () => workspaceHistory
|
|
46
47
|
});
|
|
47
|
-
const make = /* @__PURE__ */ forGroup(TemplatesGroup);
|
|
48
|
+
const make = /* @__PURE__ */ forGroup(TemplatesGroup, templatesOperations);
|
|
48
49
|
const list = /* @__PURE__ */ make("templatesList");
|
|
49
50
|
const create = /* @__PURE__ */ make("templatesCreate");
|
|
50
51
|
const listFamilies = /* @__PURE__ */ make("templatesListFamilies");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const list: (input: {
|
|
2
2
|
readonly id: string;
|
|
3
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsList">;
|
|
3
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicFormsList">;
|
|
4
4
|
export declare const create: (input: {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly allowedOrigins: readonly string[];
|
|
@@ -9,11 +9,11 @@ export declare const create: (input: {
|
|
|
9
9
|
readonly successTitle: string;
|
|
10
10
|
readonly successMessage: string;
|
|
11
11
|
readonly redirectUrl: string | null;
|
|
12
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsCreate">;
|
|
12
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicFormsCreate">;
|
|
13
13
|
export declare const get: (input: {
|
|
14
14
|
readonly id: string;
|
|
15
15
|
readonly formId: string;
|
|
16
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsGet">;
|
|
16
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicFormsGet">;
|
|
17
17
|
export declare const update: (input: {
|
|
18
18
|
readonly id: string;
|
|
19
19
|
readonly formId: string;
|
|
@@ -23,8 +23,8 @@ export declare const update: (input: {
|
|
|
23
23
|
readonly successTitle?: string | null | undefined;
|
|
24
24
|
readonly successMessage?: string | null | undefined;
|
|
25
25
|
readonly redirectUrl?: string | null | undefined;
|
|
26
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsUpdate">;
|
|
26
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicFormsUpdate">;
|
|
27
27
|
export declare const remove: (input: {
|
|
28
28
|
readonly id: string;
|
|
29
29
|
readonly formId: string;
|
|
30
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsRemove">;
|
|
30
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicFormsRemove">;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { topicFormsOperations } from "./descriptors/topic-forms.js";
|
|
3
4
|
import { TopicFormsGroup } from "./generated/topic-forms.js";
|
|
4
5
|
// src/effect/topic-forms.ts
|
|
5
6
|
var topic_forms_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -9,7 +10,7 @@ var topic_forms_exports = /* @__PURE__ */ __exportAll({
|
|
|
9
10
|
remove: () => remove,
|
|
10
11
|
update: () => update
|
|
11
12
|
});
|
|
12
|
-
const make = /* @__PURE__ */ forGroup(TopicFormsGroup);
|
|
13
|
+
const make = /* @__PURE__ */ forGroup(TopicFormsGroup, topicFormsOperations);
|
|
13
14
|
const list = /* @__PURE__ */ make("topicFormsList");
|
|
14
15
|
const create = /* @__PURE__ */ make("topicFormsCreate");
|
|
15
16
|
const get = /* @__PURE__ */ make("topicFormsGet");
|
package/dist/effect/topics.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const list: (input?: {
|
|
2
2
|
readonly namespaceId?: string | undefined;
|
|
3
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsList">;
|
|
3
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsList">;
|
|
4
4
|
export declare const create: (input: {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly description?: string | null | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const create: (input: {
|
|
|
9
9
|
readonly defaultSenderId?: string | null | undefined;
|
|
10
10
|
readonly replyMailboxId?: string | null | undefined;
|
|
11
11
|
readonly templateId?: string | null | undefined;
|
|
12
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsCreate">;
|
|
12
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsCreate">;
|
|
13
13
|
export declare const checkSubscription: (input: {
|
|
14
14
|
readonly contactId?: string | undefined;
|
|
15
15
|
readonly email?: string | undefined;
|
|
@@ -17,10 +17,10 @@ export declare const checkSubscription: (input: {
|
|
|
17
17
|
readonly namespaceId?: string | undefined;
|
|
18
18
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
19
19
|
readonly topicIds?: string | undefined;
|
|
20
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsCheckSubscription">;
|
|
20
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsCheckSubscription">;
|
|
21
21
|
export declare const get: (input: {
|
|
22
22
|
readonly id: string;
|
|
23
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsGet">;
|
|
23
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsGet">;
|
|
24
24
|
export declare const update: (input: {
|
|
25
25
|
readonly id: string;
|
|
26
26
|
readonly name?: string | null | undefined;
|
|
@@ -29,20 +29,20 @@ export declare const update: (input: {
|
|
|
29
29
|
readonly defaultSenderId?: string | null | undefined;
|
|
30
30
|
readonly replyMailboxId?: string | null | undefined;
|
|
31
31
|
readonly templateId?: string | null | undefined;
|
|
32
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsUpdate">;
|
|
32
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsUpdate">;
|
|
33
33
|
export declare const remove: (input: {
|
|
34
34
|
readonly id: string;
|
|
35
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsRemove">;
|
|
35
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsRemove">;
|
|
36
36
|
export declare const setDefault: (input: {
|
|
37
37
|
readonly id: string;
|
|
38
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsSetDefault">;
|
|
38
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsSetDefault">;
|
|
39
39
|
export declare const listSubscriptions: ((input: {
|
|
40
40
|
readonly id: string;
|
|
41
41
|
readonly limit?: number | null | undefined;
|
|
42
42
|
readonly cursor?: string | undefined;
|
|
43
43
|
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
44
44
|
readonly status?: "subscribed" | "unsubscribed" | undefined;
|
|
45
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsListSubscriptions">) & {
|
|
45
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsListSubscriptions">) & {
|
|
46
46
|
readonly pages: (input: {
|
|
47
47
|
readonly id: string;
|
|
48
48
|
readonly limit?: number | null | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const listSubscriptions: ((input: {
|
|
|
61
61
|
readonly updatedAt: string;
|
|
62
62
|
}[];
|
|
63
63
|
readonly nextCursor: string | null;
|
|
64
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
64
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
65
65
|
readonly items: (input: {
|
|
66
66
|
readonly id: string;
|
|
67
67
|
readonly limit?: number | null | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const listSubscriptions: ((input: {
|
|
|
77
77
|
readonly unsubscribedAt: string | null;
|
|
78
78
|
readonly createdAt: string;
|
|
79
79
|
readonly updatedAt: string;
|
|
80
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
80
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
81
81
|
};
|
|
82
82
|
export declare const setSubscriptions: (input: {
|
|
83
83
|
readonly id: string;
|
|
@@ -91,4 +91,4 @@ export declare const setSubscriptions: (input: {
|
|
|
91
91
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
92
92
|
readonly status: "subscribed" | "unsubscribed";
|
|
93
93
|
readonly source?: string | null | undefined;
|
|
94
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsSetSubscriptions">;
|
|
94
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"topicsSetSubscriptions">;
|
package/dist/effect/topics.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { topicsOperations } from "./descriptors/topics.js";
|
|
3
4
|
import { TopicsGroup } from "./generated/topics.js";
|
|
4
5
|
// src/effect/topics.ts
|
|
5
6
|
var topics_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -13,7 +14,7 @@ var topics_exports = /* @__PURE__ */ __exportAll({
|
|
|
13
14
|
setSubscriptions: () => setSubscriptions,
|
|
14
15
|
update: () => update
|
|
15
16
|
});
|
|
16
|
-
const make = /* @__PURE__ */ forGroup(TopicsGroup);
|
|
17
|
+
const make = /* @__PURE__ */ forGroup(TopicsGroup, topicsOperations);
|
|
17
18
|
const list = /* @__PURE__ */ make("topicsList");
|
|
18
19
|
const create = /* @__PURE__ */ make("topicsCreate");
|
|
19
20
|
const checkSubscription = /* @__PURE__ */ make("topicsCheckSubscription");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, } from "./generated/shared";
|
|
1
|
+
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, } from "./generated/shared.js";
|
|
2
2
|
export declare const create: (input: {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly url: string;
|
|
@@ -10,14 +10,14 @@ export declare const create: (input: {
|
|
|
10
10
|
readonly [x: string]: string | undefined;
|
|
11
11
|
} | null | undefined;
|
|
12
12
|
readonly status?: "active" | "disabled" | null | undefined;
|
|
13
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksCreate">;
|
|
13
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksCreate">;
|
|
14
14
|
export declare const list: ((input?: {
|
|
15
15
|
readonly limit?: number | null | undefined;
|
|
16
16
|
readonly cursor?: string | undefined;
|
|
17
17
|
readonly namespaceId?: string | undefined;
|
|
18
18
|
readonly search?: string | undefined;
|
|
19
19
|
readonly status?: "active" | "disabled" | undefined;
|
|
20
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksList">) & {
|
|
20
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksList">) & {
|
|
21
21
|
readonly pages: (input?: {
|
|
22
22
|
readonly limit?: number | null | undefined;
|
|
23
23
|
readonly cursor?: string | undefined;
|
|
@@ -48,7 +48,7 @@ export declare const list: ((input?: {
|
|
|
48
48
|
};
|
|
49
49
|
}[];
|
|
50
50
|
readonly nextCursor: string | null;
|
|
51
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
51
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
52
52
|
readonly items: (input?: {
|
|
53
53
|
readonly limit?: number | null | undefined;
|
|
54
54
|
readonly cursor?: string | undefined;
|
|
@@ -76,11 +76,11 @@ export declare const list: ((input?: {
|
|
|
76
76
|
readonly exhausted: number;
|
|
77
77
|
readonly cancelled: number;
|
|
78
78
|
};
|
|
79
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
79
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
80
80
|
};
|
|
81
81
|
export declare const get: (input: {
|
|
82
82
|
readonly id: string;
|
|
83
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGet">;
|
|
83
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGet">;
|
|
84
84
|
export declare const update: (input: {
|
|
85
85
|
readonly id: string;
|
|
86
86
|
readonly name?: string | null | undefined;
|
|
@@ -93,10 +93,10 @@ export declare const update: (input: {
|
|
|
93
93
|
readonly [x: string]: string | undefined;
|
|
94
94
|
} | null | undefined;
|
|
95
95
|
readonly status?: "active" | "disabled" | null | undefined;
|
|
96
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksUpdate">;
|
|
96
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksUpdate">;
|
|
97
97
|
export declare const remove: (input: {
|
|
98
98
|
readonly id: string;
|
|
99
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRemove">;
|
|
99
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksRemove">;
|
|
100
100
|
export declare const test: (input: {
|
|
101
101
|
readonly id: string;
|
|
102
102
|
readonly data?: {
|
|
@@ -126,12 +126,12 @@ export declare const test: (input: {
|
|
|
126
126
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
127
127
|
} | null | undefined;
|
|
128
128
|
} | null | undefined;
|
|
129
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksTest">;
|
|
129
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksTest">;
|
|
130
130
|
export declare const getLogs: ((input: {
|
|
131
131
|
readonly id: string;
|
|
132
132
|
readonly limit?: number | null | undefined;
|
|
133
133
|
readonly cursor?: string | undefined;
|
|
134
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetLogs">) & {
|
|
134
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGetLogs">) & {
|
|
135
135
|
readonly pages: (input: {
|
|
136
136
|
readonly id: string;
|
|
137
137
|
readonly limit?: number | null | undefined;
|
|
@@ -168,7 +168,7 @@ export declare const getLogs: ((input: {
|
|
|
168
168
|
}[];
|
|
169
169
|
}[];
|
|
170
170
|
readonly nextCursor: string | null;
|
|
171
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
171
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
172
172
|
readonly items: (input: {
|
|
173
173
|
readonly id: string;
|
|
174
174
|
readonly limit?: number | null | undefined;
|
|
@@ -202,20 +202,20 @@ export declare const getLogs: ((input: {
|
|
|
202
202
|
readonly errorMessage: string | null;
|
|
203
203
|
readonly createdAt: string;
|
|
204
204
|
}[];
|
|
205
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
205
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
206
206
|
};
|
|
207
207
|
export declare const getStats: (input: {
|
|
208
208
|
readonly id: string;
|
|
209
209
|
readonly after?: string | undefined;
|
|
210
210
|
readonly before?: string | undefined;
|
|
211
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetStats">;
|
|
211
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGetStats">;
|
|
212
212
|
export declare const retryDelivery: (input: {
|
|
213
213
|
readonly id: string;
|
|
214
214
|
readonly deliveryId: string;
|
|
215
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRetryDelivery">;
|
|
215
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksRetryDelivery">;
|
|
216
216
|
export declare const regenerateSecret: (input: {
|
|
217
217
|
readonly id: string;
|
|
218
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRegenerateSecret">;
|
|
218
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksRegenerateSecret">;
|
|
219
219
|
export declare const getSecret: (input: {
|
|
220
220
|
readonly id: string;
|
|
221
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetSecret">;
|
|
221
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGetSecret">;
|
package/dist/effect/webhooks.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { CreateWebhookPayload, TestWebhookPayload, UpdateWebhookPayload } from "./generated/shared.js";
|
|
3
3
|
import { forGroup } from "./internal/operation.js";
|
|
4
|
+
import { webhooksOperations } from "./descriptors/webhooks.js";
|
|
4
5
|
import { WebhooksGroup } from "./generated/webhooks.js";
|
|
5
6
|
// src/effect/webhooks.ts
|
|
6
7
|
var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -19,7 +20,7 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
20
|
test: () => test,
|
|
20
21
|
update: () => update
|
|
21
22
|
});
|
|
22
|
-
const make = /* @__PURE__ */ forGroup(WebhooksGroup);
|
|
23
|
+
const make = /* @__PURE__ */ forGroup(WebhooksGroup, webhooksOperations);
|
|
23
24
|
const create = /* @__PURE__ */ make("webhooksCreate");
|
|
24
25
|
const list = /* @__PURE__ */ make("webhooksList");
|
|
25
26
|
const get = /* @__PURE__ */ make("webhooksGet");
|