samva 0.34.0 → 0.35.0
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/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
package/dist/effect/agents.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string |
|
|
3
|
+
readonly cursor?: string | undefined;
|
|
4
4
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsList">) & {
|
|
5
5
|
readonly pages: (input?: {
|
|
6
6
|
readonly limit?: number | null | undefined;
|
|
7
|
-
readonly cursor?: string |
|
|
7
|
+
readonly cursor?: string | undefined;
|
|
8
8
|
} | undefined) => import("effect/Stream").Stream<{
|
|
9
9
|
readonly items: readonly {
|
|
10
10
|
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
@@ -12,30 +12,38 @@ export declare const list: ((input?: {
|
|
|
12
12
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
13
13
|
readonly publishedVersion: number | null;
|
|
14
14
|
readonly publishedAt: string | null;
|
|
15
|
+
readonly pausedAt: string | null;
|
|
16
|
+
readonly creditsPausedAt?: string | null;
|
|
17
|
+
readonly monthlySpendCapDollars: number | null;
|
|
15
18
|
readonly createdAt: string;
|
|
16
19
|
readonly updatedAt: string;
|
|
17
20
|
}[];
|
|
18
21
|
readonly nextCursor: string | null;
|
|
19
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
22
|
+
}, 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>;
|
|
20
23
|
readonly items: (input?: {
|
|
21
24
|
readonly limit?: number | null | undefined;
|
|
22
|
-
readonly cursor?: string |
|
|
25
|
+
readonly cursor?: string | undefined;
|
|
23
26
|
} | undefined) => import("effect/Stream").Stream<{
|
|
24
27
|
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
25
28
|
readonly name: string;
|
|
26
29
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
27
30
|
readonly publishedVersion: number | null;
|
|
28
31
|
readonly publishedAt: string | null;
|
|
32
|
+
readonly pausedAt: string | null;
|
|
33
|
+
readonly creditsPausedAt?: string | null;
|
|
34
|
+
readonly monthlySpendCapDollars: number | null;
|
|
29
35
|
readonly createdAt: string;
|
|
30
36
|
readonly updatedAt: string;
|
|
31
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
37
|
+
}, 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>;
|
|
32
38
|
};
|
|
39
|
+
export declare const listModels: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListModels">;
|
|
33
40
|
export declare const create: (input: {
|
|
34
41
|
readonly name: string;
|
|
35
42
|
readonly namespaceId?: string | null | undefined;
|
|
36
43
|
readonly definition?: {
|
|
37
44
|
readonly instructions: string;
|
|
38
45
|
readonly knowledge: string;
|
|
46
|
+
readonly knowledgeSourceIds?: readonly string[] | undefined;
|
|
39
47
|
readonly endpointIds: readonly string[];
|
|
40
48
|
readonly integrations: readonly {
|
|
41
49
|
readonly integrationId: string;
|
|
@@ -50,7 +58,8 @@ export declare const create: (input: {
|
|
|
50
58
|
readonly requireApproval: readonly string[];
|
|
51
59
|
}[];
|
|
52
60
|
readonly mode: "live" | "supervised";
|
|
53
|
-
readonly model:
|
|
61
|
+
readonly model: string;
|
|
62
|
+
readonly reasoning: "auto" | "high" | "low" | "medium";
|
|
54
63
|
readonly workingHours: {
|
|
55
64
|
readonly timeZone: string;
|
|
56
65
|
readonly ranges: readonly {
|
|
@@ -67,7 +76,8 @@ export declare const get: (input: {
|
|
|
67
76
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGet">;
|
|
68
77
|
export declare const update: (input: {
|
|
69
78
|
readonly id: string;
|
|
70
|
-
readonly name
|
|
79
|
+
readonly name?: string | null | undefined;
|
|
80
|
+
readonly monthlySpendCapDollars?: number | null | undefined;
|
|
71
81
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsUpdate">;
|
|
72
82
|
export declare const remove: (input: {
|
|
73
83
|
readonly id: string;
|
|
@@ -78,6 +88,7 @@ export declare const replaceDraft: (input: {
|
|
|
78
88
|
readonly definition: {
|
|
79
89
|
readonly instructions: string;
|
|
80
90
|
readonly knowledge: string;
|
|
91
|
+
readonly knowledgeSourceIds?: readonly string[] | undefined;
|
|
81
92
|
readonly endpointIds: readonly string[];
|
|
82
93
|
readonly integrations: readonly {
|
|
83
94
|
readonly integrationId: string;
|
|
@@ -92,7 +103,8 @@ export declare const replaceDraft: (input: {
|
|
|
92
103
|
readonly requireApproval: readonly string[];
|
|
93
104
|
}[];
|
|
94
105
|
readonly mode: "live" | "supervised";
|
|
95
|
-
readonly model:
|
|
106
|
+
readonly model: string;
|
|
107
|
+
readonly reasoning: "auto" | "high" | "low" | "medium";
|
|
96
108
|
readonly workingHours: {
|
|
97
109
|
readonly timeZone: string;
|
|
98
110
|
readonly ranges: readonly {
|
|
@@ -108,15 +120,18 @@ export declare const publish: (input: {
|
|
|
108
120
|
readonly id: string;
|
|
109
121
|
readonly revision: string;
|
|
110
122
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsPublish">;
|
|
123
|
+
export declare const continueOnStandard: (input: {
|
|
124
|
+
readonly id: string;
|
|
125
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsContinueOnStandard">;
|
|
111
126
|
export declare const listVersions: ((input: {
|
|
112
127
|
readonly id: string;
|
|
113
128
|
readonly limit?: number | null | undefined;
|
|
114
|
-
readonly cursor?: string |
|
|
129
|
+
readonly cursor?: string | undefined;
|
|
115
130
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
|
|
116
131
|
readonly pages: (input: {
|
|
117
132
|
readonly id: string;
|
|
118
133
|
readonly limit?: number | null | undefined;
|
|
119
|
-
readonly cursor?: string |
|
|
134
|
+
readonly cursor?: string | undefined;
|
|
120
135
|
}) => import("effect/Stream").Stream<{
|
|
121
136
|
readonly items: readonly {
|
|
122
137
|
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
@@ -124,16 +139,16 @@ export declare const listVersions: ((input: {
|
|
|
124
139
|
readonly publishedAt: string;
|
|
125
140
|
}[];
|
|
126
141
|
readonly nextCursor: string | null;
|
|
127
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
142
|
+
}, 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>;
|
|
128
143
|
readonly items: (input: {
|
|
129
144
|
readonly id: string;
|
|
130
145
|
readonly limit?: number | null | undefined;
|
|
131
|
-
readonly cursor?: string |
|
|
146
|
+
readonly cursor?: string | undefined;
|
|
132
147
|
}) => import("effect/Stream").Stream<{
|
|
133
148
|
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
134
149
|
readonly version: number;
|
|
135
150
|
readonly publishedAt: string;
|
|
136
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
151
|
+
}, 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>;
|
|
137
152
|
};
|
|
138
153
|
export declare const getVersion: (input: {
|
|
139
154
|
readonly id: string;
|
package/dist/effect/agents.js
CHANGED
|
@@ -3,10 +3,12 @@ import { AgentsGroup } from "./generated/agents.js";
|
|
|
3
3
|
import { forGroup } from "./internal/operation.js";
|
|
4
4
|
// src/effect/agents.ts
|
|
5
5
|
var agents_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
continueOnStandard: () => continueOnStandard,
|
|
6
7
|
create: () => create,
|
|
7
8
|
get: () => get,
|
|
8
9
|
getVersion: () => getVersion,
|
|
9
10
|
list: () => list,
|
|
11
|
+
listModels: () => listModels,
|
|
10
12
|
listVersions: () => listVersions,
|
|
11
13
|
publish: () => publish,
|
|
12
14
|
remove: () => remove,
|
|
@@ -15,14 +17,16 @@ var agents_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
17
|
});
|
|
16
18
|
const make = /* @__PURE__ */ forGroup(AgentsGroup);
|
|
17
19
|
const list = /* @__PURE__ */ make("agentsList");
|
|
20
|
+
const listModels = /* @__PURE__ */ make("agentsListModels");
|
|
18
21
|
const create = /* @__PURE__ */ make("agentsCreate");
|
|
19
22
|
const get = /* @__PURE__ */ make("agentsGet");
|
|
20
23
|
const update = /* @__PURE__ */ make("agentsUpdate");
|
|
21
24
|
const remove = /* @__PURE__ */ make("agentsRemove");
|
|
22
25
|
const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
|
|
23
26
|
const publish = /* @__PURE__ */ make("agentsPublish");
|
|
27
|
+
const continueOnStandard = /* @__PURE__ */ make("agentsContinueOnStandard");
|
|
24
28
|
const listVersions = /* @__PURE__ */ make("agentsListVersions");
|
|
25
29
|
const getVersion = /* @__PURE__ */ make("agentsGetVersion");
|
|
26
|
-
export { agents_exports, create, get, getVersion, list, listVersions, publish, remove, replaceDraft, update };
|
|
30
|
+
export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, remove, replaceDraft, update };
|
|
27
31
|
|
|
28
32
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
export declare const getStats: (input?: {
|
|
2
|
-
readonly after?: Date |
|
|
3
|
-
readonly before?: Date |
|
|
4
|
-
readonly groupBy?: "day" | "month" | "week" |
|
|
5
|
-
readonly channel?: "email" |
|
|
2
|
+
readonly after?: Date | undefined;
|
|
3
|
+
readonly before?: Date | undefined;
|
|
4
|
+
readonly groupBy?: "day" | "month" | "week" | undefined;
|
|
5
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
6
6
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetStats">;
|
|
7
7
|
export declare const getChannelStats: (input?: {
|
|
8
|
-
readonly after?: Date |
|
|
9
|
-
readonly before?: Date |
|
|
8
|
+
readonly after?: Date | undefined;
|
|
9
|
+
readonly before?: Date | undefined;
|
|
10
10
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetChannelStats">;
|
|
11
11
|
export declare const getTopContacts: (input?: {
|
|
12
|
-
readonly after?: Date |
|
|
13
|
-
readonly before?: Date |
|
|
12
|
+
readonly after?: Date | undefined;
|
|
13
|
+
readonly before?: Date | undefined;
|
|
14
14
|
readonly limit?: number | null | undefined;
|
|
15
|
-
readonly sortBy?: "received" | "sent" | "total" |
|
|
15
|
+
readonly sortBy?: "received" | "sent" | "total" | undefined;
|
|
16
16
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
|
|
17
17
|
export declare const getHourlyDistribution: (input?: {
|
|
18
|
-
readonly after?: Date |
|
|
19
|
-
readonly before?: Date |
|
|
18
|
+
readonly after?: Date | undefined;
|
|
19
|
+
readonly before?: Date | undefined;
|
|
20
20
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetHourlyDistribution">;
|
|
21
21
|
export declare const getDeliveryMetrics: (input?: {
|
|
22
|
-
readonly after?: Date |
|
|
23
|
-
readonly before?: Date |
|
|
24
|
-
readonly channel?: "email" |
|
|
22
|
+
readonly after?: Date | undefined;
|
|
23
|
+
readonly before?: Date | undefined;
|
|
24
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
25
25
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetDeliveryMetrics">;
|
|
26
26
|
export declare const exportData: (input: {
|
|
27
27
|
readonly after: Date;
|
|
28
28
|
readonly before: Date;
|
|
29
29
|
readonly format?: "csv" | "json" | null | undefined;
|
|
30
|
-
readonly includeChannels?: readonly "email"[] | null | undefined;
|
|
30
|
+
readonly includeChannels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
31
31
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsExportData">;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, } from "./generated/api-keys";
|
|
2
2
|
export declare const list: ((input?: {
|
|
3
3
|
readonly limit?: number | null | undefined;
|
|
4
|
-
readonly cursor?: string |
|
|
5
|
-
readonly status?: "active" | "revoked" |
|
|
6
|
-
readonly search?: string |
|
|
4
|
+
readonly cursor?: string | undefined;
|
|
5
|
+
readonly status?: "active" | "revoked" | undefined;
|
|
6
|
+
readonly search?: string | undefined;
|
|
7
7
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysList">) & {
|
|
8
8
|
readonly pages: (input?: {
|
|
9
9
|
readonly limit?: number | null | undefined;
|
|
10
|
-
readonly cursor?: string |
|
|
11
|
-
readonly status?: "active" | "revoked" |
|
|
12
|
-
readonly search?: string |
|
|
10
|
+
readonly cursor?: string | undefined;
|
|
11
|
+
readonly status?: "active" | "revoked" | undefined;
|
|
12
|
+
readonly search?: string | undefined;
|
|
13
13
|
} | undefined) => import("effect/Stream").Stream<{
|
|
14
14
|
readonly items: readonly {
|
|
15
15
|
readonly id: string;
|
|
@@ -29,8 +29,11 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly resources: {
|
|
30
30
|
readonly messages?: "read" | "write" | null;
|
|
31
31
|
readonly email?: "read" | "write" | null;
|
|
32
|
+
readonly sms?: "read" | "write" | null;
|
|
33
|
+
readonly whatsapp?: "read" | "write" | null;
|
|
32
34
|
readonly domains?: "read" | "write" | null;
|
|
33
35
|
readonly phoneNumbers?: "read" | "write" | null;
|
|
36
|
+
readonly whatsappAccounts?: "read" | "write" | null;
|
|
34
37
|
readonly contacts?: "read" | "write" | null;
|
|
35
38
|
readonly conversations?: "read" | "write" | null;
|
|
36
39
|
readonly templates?: "read" | "write" | null;
|
|
@@ -55,12 +58,12 @@ export declare const list: ((input?: {
|
|
|
55
58
|
} | null;
|
|
56
59
|
}[];
|
|
57
60
|
readonly nextCursor: string | null;
|
|
58
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
61
|
+
}, 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>;
|
|
59
62
|
readonly items: (input?: {
|
|
60
63
|
readonly limit?: number | null | undefined;
|
|
61
|
-
readonly cursor?: string |
|
|
62
|
-
readonly status?: "active" | "revoked" |
|
|
63
|
-
readonly search?: string |
|
|
64
|
+
readonly cursor?: string | undefined;
|
|
65
|
+
readonly status?: "active" | "revoked" | undefined;
|
|
66
|
+
readonly search?: string | undefined;
|
|
64
67
|
} | undefined) => import("effect/Stream").Stream<{
|
|
65
68
|
readonly id: string;
|
|
66
69
|
readonly name: string;
|
|
@@ -79,8 +82,11 @@ export declare const list: ((input?: {
|
|
|
79
82
|
readonly resources: {
|
|
80
83
|
readonly messages?: "read" | "write" | null;
|
|
81
84
|
readonly email?: "read" | "write" | null;
|
|
85
|
+
readonly sms?: "read" | "write" | null;
|
|
86
|
+
readonly whatsapp?: "read" | "write" | null;
|
|
82
87
|
readonly domains?: "read" | "write" | null;
|
|
83
88
|
readonly phoneNumbers?: "read" | "write" | null;
|
|
89
|
+
readonly whatsappAccounts?: "read" | "write" | null;
|
|
84
90
|
readonly contacts?: "read" | "write" | null;
|
|
85
91
|
readonly conversations?: "read" | "write" | null;
|
|
86
92
|
readonly templates?: "read" | "write" | null;
|
|
@@ -103,7 +109,7 @@ export declare const list: ((input?: {
|
|
|
103
109
|
readonly name: string;
|
|
104
110
|
readonly email: string;
|
|
105
111
|
} | null;
|
|
106
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
112
|
+
}, 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>;
|
|
107
113
|
};
|
|
108
114
|
export declare const create: (input: {
|
|
109
115
|
readonly name: string;
|
|
@@ -116,8 +122,11 @@ export declare const create: (input: {
|
|
|
116
122
|
readonly resources: {
|
|
117
123
|
readonly messages?: "read" | "write" | null | undefined;
|
|
118
124
|
readonly email?: "read" | "write" | null | undefined;
|
|
125
|
+
readonly sms?: "read" | "write" | null | undefined;
|
|
126
|
+
readonly whatsapp?: "read" | "write" | null | undefined;
|
|
119
127
|
readonly domains?: "read" | "write" | null | undefined;
|
|
120
128
|
readonly phoneNumbers?: "read" | "write" | null | undefined;
|
|
129
|
+
readonly whatsappAccounts?: "read" | "write" | null | undefined;
|
|
121
130
|
readonly contacts?: "read" | "write" | null | undefined;
|
|
122
131
|
readonly conversations?: "read" | "write" | null | undefined;
|
|
123
132
|
readonly templates?: "read" | "write" | null | undefined;
|
|
@@ -155,18 +164,18 @@ export declare const rotate: (input: {
|
|
|
155
164
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysRotate">;
|
|
156
165
|
export declare const getStats: (input: {
|
|
157
166
|
readonly id: string;
|
|
158
|
-
readonly after?: string |
|
|
159
|
-
readonly before?: string |
|
|
167
|
+
readonly after?: string | undefined;
|
|
168
|
+
readonly before?: string | undefined;
|
|
160
169
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
|
|
161
170
|
export declare const getActivity: ((input: {
|
|
162
171
|
readonly id: string;
|
|
163
172
|
readonly limit?: number | null | undefined;
|
|
164
|
-
readonly cursor?: string |
|
|
173
|
+
readonly cursor?: string | undefined;
|
|
165
174
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
|
|
166
175
|
readonly pages: (input: {
|
|
167
176
|
readonly id: string;
|
|
168
177
|
readonly limit?: number | null | undefined;
|
|
169
|
-
readonly cursor?: string |
|
|
178
|
+
readonly cursor?: string | undefined;
|
|
170
179
|
}) => import("effect/Stream").Stream<{
|
|
171
180
|
readonly items: readonly {
|
|
172
181
|
readonly id: string;
|
|
@@ -177,11 +186,11 @@ export declare const getActivity: ((input: {
|
|
|
177
186
|
readonly latency: number;
|
|
178
187
|
}[];
|
|
179
188
|
readonly nextCursor: string | null;
|
|
180
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
189
|
+
}, 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>;
|
|
181
190
|
readonly items: (input: {
|
|
182
191
|
readonly id: string;
|
|
183
192
|
readonly limit?: number | null | undefined;
|
|
184
|
-
readonly cursor?: string |
|
|
193
|
+
readonly cursor?: string | undefined;
|
|
185
194
|
}) => import("effect/Stream").Stream<{
|
|
186
195
|
readonly id: string;
|
|
187
196
|
readonly timestamp: string;
|
|
@@ -189,5 +198,5 @@ export declare const getActivity: ((input: {
|
|
|
189
198
|
readonly endpoint: string;
|
|
190
199
|
readonly statusCode: number;
|
|
191
200
|
readonly latency: number;
|
|
192
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
201
|
+
}, 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>;
|
|
193
202
|
};
|