@lessly/sdk-app 30.5.0 → 30.7.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/dist/analytics/index.d.cts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/brain/index.d.cts +1 -1
- package/dist/brain/index.d.ts +1 -1
- package/dist/{client.gen-TuN8pGec.d.cts → client.gen-p_iZK5OO.d.cts} +441 -4
- package/dist/{client.gen-TuN8pGec.d.ts → client.gen-p_iZK5OO.d.ts} +441 -4
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +144 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +144 -0
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/realtime/index.d.cts +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/support/index.cjs +40 -0
- package/dist/support/index.cjs.map +1 -1
- package/dist/support/index.d.cts +34 -2
- package/dist/support/index.d.ts +34 -2
- package/dist/support/index.js +33 -1
- package/dist/support/index.js.map +1 -1
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/users/index.d.cts +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +144 -0
- package/src/gen/client.gen.ts +30 -0
- package/src/gen/support/index.ts +1 -1
- package/src/gen/support/queryOptions.gen.ts +51 -0
- package/src/gen/types.gen.ts +443 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"require": "./dist/waitlist/index.cjs"
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
"sdkContentHash": "sha256:
|
|
99
|
+
"sdkContentHash": "sha256:8d1afa88468b8c3942c5aff49bba34becc17e463b9c66612082158bc457e37fd"
|
|
100
100
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -5129,6 +5129,14 @@ export const bindings: BindingsMap = {
|
|
|
5129
5129
|
"in": "query",
|
|
5130
5130
|
"name": "visibility"
|
|
5131
5131
|
},
|
|
5132
|
+
{
|
|
5133
|
+
"in": "query",
|
|
5134
|
+
"name": "since"
|
|
5135
|
+
},
|
|
5136
|
+
{
|
|
5137
|
+
"in": "query",
|
|
5138
|
+
"name": "cursor"
|
|
5139
|
+
},
|
|
5132
5140
|
{
|
|
5133
5141
|
"in": "query",
|
|
5134
5142
|
"name": "limit"
|
|
@@ -5373,6 +5381,142 @@ export const bindings: BindingsMap = {
|
|
|
5373
5381
|
"path": "/support/threads/:id/status",
|
|
5374
5382
|
"readOnly": false
|
|
5375
5383
|
}
|
|
5384
|
+
},
|
|
5385
|
+
"webhook": {
|
|
5386
|
+
"create": {
|
|
5387
|
+
"method": "POST",
|
|
5388
|
+
"params": [
|
|
5389
|
+
{
|
|
5390
|
+
"in": "body",
|
|
5391
|
+
"name": "url"
|
|
5392
|
+
},
|
|
5393
|
+
{
|
|
5394
|
+
"in": "body",
|
|
5395
|
+
"name": "eventTypes"
|
|
5396
|
+
},
|
|
5397
|
+
{
|
|
5398
|
+
"in": "body",
|
|
5399
|
+
"name": "description"
|
|
5400
|
+
}
|
|
5401
|
+
],
|
|
5402
|
+
"path": "/support/webhooks",
|
|
5403
|
+
"readOnly": false
|
|
5404
|
+
},
|
|
5405
|
+
"delete": {
|
|
5406
|
+
"method": "DELETE",
|
|
5407
|
+
"params": [
|
|
5408
|
+
{
|
|
5409
|
+
"in": "path",
|
|
5410
|
+
"name": "id"
|
|
5411
|
+
}
|
|
5412
|
+
],
|
|
5413
|
+
"path": "/support/webhooks/:id",
|
|
5414
|
+
"readOnly": false
|
|
5415
|
+
},
|
|
5416
|
+
"get": {
|
|
5417
|
+
"method": "GET",
|
|
5418
|
+
"params": [
|
|
5419
|
+
{
|
|
5420
|
+
"in": "path",
|
|
5421
|
+
"name": "id"
|
|
5422
|
+
}
|
|
5423
|
+
],
|
|
5424
|
+
"path": "/support/webhooks/:id",
|
|
5425
|
+
"readOnly": true
|
|
5426
|
+
},
|
|
5427
|
+
"list": {
|
|
5428
|
+
"method": "GET",
|
|
5429
|
+
"path": "/support/webhooks",
|
|
5430
|
+
"readOnly": true
|
|
5431
|
+
},
|
|
5432
|
+
"redeliver": {
|
|
5433
|
+
"method": "POST",
|
|
5434
|
+
"params": [
|
|
5435
|
+
{
|
|
5436
|
+
"in": "body",
|
|
5437
|
+
"name": "id"
|
|
5438
|
+
}
|
|
5439
|
+
],
|
|
5440
|
+
"path": "/support/webhook-deliveries/redeliver",
|
|
5441
|
+
"readOnly": false
|
|
5442
|
+
},
|
|
5443
|
+
"update": {
|
|
5444
|
+
"method": "PATCH",
|
|
5445
|
+
"params": [
|
|
5446
|
+
{
|
|
5447
|
+
"in": "body",
|
|
5448
|
+
"name": "url"
|
|
5449
|
+
},
|
|
5450
|
+
{
|
|
5451
|
+
"in": "body",
|
|
5452
|
+
"name": "eventTypes"
|
|
5453
|
+
},
|
|
5454
|
+
{
|
|
5455
|
+
"in": "body",
|
|
5456
|
+
"name": "description"
|
|
5457
|
+
},
|
|
5458
|
+
{
|
|
5459
|
+
"in": "body",
|
|
5460
|
+
"name": "status"
|
|
5461
|
+
},
|
|
5462
|
+
{
|
|
5463
|
+
"in": "path",
|
|
5464
|
+
"name": "id"
|
|
5465
|
+
}
|
|
5466
|
+
],
|
|
5467
|
+
"path": "/support/webhooks/:id",
|
|
5468
|
+
"readOnly": false
|
|
5469
|
+
}
|
|
5470
|
+
},
|
|
5471
|
+
"webhook-deliveries": {
|
|
5472
|
+
"list": {
|
|
5473
|
+
"method": "GET",
|
|
5474
|
+
"params": [
|
|
5475
|
+
{
|
|
5476
|
+
"in": "query",
|
|
5477
|
+
"name": "webhookId"
|
|
5478
|
+
},
|
|
5479
|
+
{
|
|
5480
|
+
"in": "query",
|
|
5481
|
+
"name": "state"
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
"in": "query",
|
|
5485
|
+
"name": "eventType"
|
|
5486
|
+
},
|
|
5487
|
+
{
|
|
5488
|
+
"in": "query",
|
|
5489
|
+
"name": "createdFrom"
|
|
5490
|
+
},
|
|
5491
|
+
{
|
|
5492
|
+
"in": "query",
|
|
5493
|
+
"name": "createdTo"
|
|
5494
|
+
},
|
|
5495
|
+
{
|
|
5496
|
+
"in": "query",
|
|
5497
|
+
"name": "limit"
|
|
5498
|
+
},
|
|
5499
|
+
{
|
|
5500
|
+
"in": "query",
|
|
5501
|
+
"name": "offset"
|
|
5502
|
+
}
|
|
5503
|
+
],
|
|
5504
|
+
"path": "/support/webhook-deliveries",
|
|
5505
|
+
"readOnly": true
|
|
5506
|
+
}
|
|
5507
|
+
},
|
|
5508
|
+
"webhook-rotate": {
|
|
5509
|
+
"secret": {
|
|
5510
|
+
"method": "POST",
|
|
5511
|
+
"params": [
|
|
5512
|
+
{
|
|
5513
|
+
"in": "path",
|
|
5514
|
+
"name": "id"
|
|
5515
|
+
}
|
|
5516
|
+
],
|
|
5517
|
+
"path": "/support/webhooks/:id/rotate-secret",
|
|
5518
|
+
"readOnly": false
|
|
5519
|
+
}
|
|
5376
5520
|
}
|
|
5377
5521
|
},
|
|
5378
5522
|
"tracking": {
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -662,6 +662,22 @@ import type {
|
|
|
662
662
|
SupportThreadStatusSetOutput,
|
|
663
663
|
SupportThreadUpdateInput,
|
|
664
664
|
SupportThreadUpdateOutput,
|
|
665
|
+
SupportWebhookCreateInput,
|
|
666
|
+
SupportWebhookCreateOutput,
|
|
667
|
+
SupportWebhookDeleteInput,
|
|
668
|
+
SupportWebhookDeleteOutput,
|
|
669
|
+
SupportWebhookDeliveriesListInput,
|
|
670
|
+
SupportWebhookDeliveriesListOutput,
|
|
671
|
+
SupportWebhookGetInput,
|
|
672
|
+
SupportWebhookGetOutput,
|
|
673
|
+
SupportWebhookListInput,
|
|
674
|
+
SupportWebhookListOutput,
|
|
675
|
+
SupportWebhookRedeliverInput,
|
|
676
|
+
SupportWebhookRedeliverOutput,
|
|
677
|
+
SupportWebhookRotateSecretInput,
|
|
678
|
+
SupportWebhookRotateSecretOutput,
|
|
679
|
+
SupportWebhookUpdateInput,
|
|
680
|
+
SupportWebhookUpdateOutput,
|
|
665
681
|
TrackingDomainsCreateInput,
|
|
666
682
|
TrackingDomainsCreateOutput,
|
|
667
683
|
TrackingDomainsDeleteInput,
|
|
@@ -1437,6 +1453,20 @@ export interface GeneratedClient {
|
|
|
1437
1453
|
'thread-status': {
|
|
1438
1454
|
set(input: SupportThreadStatusSetInput): Promise<SupportThreadStatusSetOutput>;
|
|
1439
1455
|
};
|
|
1456
|
+
webhook: {
|
|
1457
|
+
create(input: SupportWebhookCreateInput): Promise<SupportWebhookCreateOutput>;
|
|
1458
|
+
delete(input: SupportWebhookDeleteInput): Promise<SupportWebhookDeleteOutput>;
|
|
1459
|
+
get(input: SupportWebhookGetInput): Promise<SupportWebhookGetOutput>;
|
|
1460
|
+
list(input: SupportWebhookListInput): Promise<SupportWebhookListOutput>;
|
|
1461
|
+
redeliver(input: SupportWebhookRedeliverInput): Promise<SupportWebhookRedeliverOutput>;
|
|
1462
|
+
update(input: SupportWebhookUpdateInput): Promise<SupportWebhookUpdateOutput>;
|
|
1463
|
+
};
|
|
1464
|
+
'webhook-deliveries': {
|
|
1465
|
+
list(input: SupportWebhookDeliveriesListInput): Promise<SupportWebhookDeliveriesListOutput>;
|
|
1466
|
+
};
|
|
1467
|
+
'webhook-rotate': {
|
|
1468
|
+
secret(input: SupportWebhookRotateSecretInput): Promise<SupportWebhookRotateSecretOutput>;
|
|
1469
|
+
};
|
|
1440
1470
|
};
|
|
1441
1471
|
tracking: {
|
|
1442
1472
|
domains: {
|
package/src/gen/support/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { SupportAgentCreateInput, SupportAgentCreateOutput, SupportAgentGetInput, SupportAgentGetOutput, SupportAgentListInput, SupportAgentListOutput, SupportAgentUpdateInput, SupportAgentUpdateOutput, SupportAttachmentCreateInput, SupportAttachmentCreateOutput, SupportAttachmentFinalizeInput, SupportAttachmentFinalizeOutput, SupportLabelCreateInput, SupportLabelCreateOutput, SupportLabelListInput, SupportLabelListOutput, SupportMessageCreateInput, SupportMessageCreateOutput, SupportMessageListInput, SupportMessageListOutput, SupportStatusArchiveInput, SupportStatusArchiveOutput, SupportStatusCreateInput, SupportStatusCreateOutput, SupportStatusListInput, SupportStatusListOutput, SupportStatusUpdateInput, SupportStatusUpdateOutput, SupportThreadAssignInput, SupportThreadAssignOutput, SupportThreadCreateInput, SupportThreadCreateOutput, SupportThreadGetInput, SupportThreadGetOutput, SupportThreadListInput, SupportThreadListOutput, SupportThreadStatusSetInput, SupportThreadStatusSetOutput, SupportThreadUpdateInput, SupportThreadUpdateOutput } from '../types.gen';
|
|
3
|
+
export type { SupportAgentCreateInput, SupportAgentCreateOutput, SupportAgentGetInput, SupportAgentGetOutput, SupportAgentListInput, SupportAgentListOutput, SupportAgentUpdateInput, SupportAgentUpdateOutput, SupportAttachmentCreateInput, SupportAttachmentCreateOutput, SupportAttachmentFinalizeInput, SupportAttachmentFinalizeOutput, SupportLabelCreateInput, SupportLabelCreateOutput, SupportLabelListInput, SupportLabelListOutput, SupportMessageCreateInput, SupportMessageCreateOutput, SupportMessageListInput, SupportMessageListOutput, SupportStatusArchiveInput, SupportStatusArchiveOutput, SupportStatusCreateInput, SupportStatusCreateOutput, SupportStatusListInput, SupportStatusListOutput, SupportStatusUpdateInput, SupportStatusUpdateOutput, SupportThreadAssignInput, SupportThreadAssignOutput, SupportThreadCreateInput, SupportThreadCreateOutput, SupportThreadGetInput, SupportThreadGetOutput, SupportThreadListInput, SupportThreadListOutput, SupportThreadStatusSetInput, SupportThreadStatusSetOutput, SupportThreadUpdateInput, SupportThreadUpdateOutput, SupportWebhookCreateInput, SupportWebhookCreateOutput, SupportWebhookDeleteInput, SupportWebhookDeleteOutput, SupportWebhookDeliveriesListInput, SupportWebhookDeliveriesListOutput, SupportWebhookGetInput, SupportWebhookGetOutput, SupportWebhookListInput, SupportWebhookListOutput, SupportWebhookRedeliverInput, SupportWebhookRedeliverOutput, SupportWebhookRotateSecretInput, SupportWebhookRotateSecretOutput, SupportWebhookUpdateInput, SupportWebhookUpdateOutput } from '../types.gen';
|
|
@@ -28,6 +28,17 @@ import type {
|
|
|
28
28
|
SupportThreadListOutput,
|
|
29
29
|
SupportThreadStatusSetInput,
|
|
30
30
|
SupportThreadUpdateInput,
|
|
31
|
+
SupportWebhookCreateInput,
|
|
32
|
+
SupportWebhookDeleteInput,
|
|
33
|
+
SupportWebhookDeliveriesListInput,
|
|
34
|
+
SupportWebhookDeliveriesListOutput,
|
|
35
|
+
SupportWebhookGetInput,
|
|
36
|
+
SupportWebhookGetOutput,
|
|
37
|
+
SupportWebhookListInput,
|
|
38
|
+
SupportWebhookListOutput,
|
|
39
|
+
SupportWebhookRedeliverInput,
|
|
40
|
+
SupportWebhookRotateSecretInput,
|
|
41
|
+
SupportWebhookUpdateInput,
|
|
31
42
|
} from '../types.gen';
|
|
32
43
|
|
|
33
44
|
export const supportAgentCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
@@ -129,3 +140,43 @@ export const supportThreadUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
|
129
140
|
mutationKey: ['support', 'thread', 'update'],
|
|
130
141
|
mutationFn: (input: SupportThreadUpdateInput) => sdk['support']['thread']['update'](input),
|
|
131
142
|
});
|
|
143
|
+
|
|
144
|
+
export const supportWebhookCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
145
|
+
mutationKey: ['support', 'webhook', 'create'],
|
|
146
|
+
mutationFn: (input: SupportWebhookCreateInput) => sdk['support']['webhook']['create'](input),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
export const supportWebhookDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
150
|
+
mutationKey: ['support', 'webhook', 'delete'],
|
|
151
|
+
mutationFn: (input: SupportWebhookDeleteInput) => sdk['support']['webhook']['delete'](input),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export const supportWebhookDeliveriesListQueryOptions = (sdk: GeneratedClient, input: SupportWebhookDeliveriesListInput) => ({
|
|
155
|
+
queryKey: ['support', 'webhook-deliveries', 'list', input] as const,
|
|
156
|
+
queryFn: () => sdk['support']['webhook-deliveries']['list'](input),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export const supportWebhookGetQueryOptions = (sdk: GeneratedClient, input: SupportWebhookGetInput) => ({
|
|
160
|
+
queryKey: ['support', 'webhook', 'get', input] as const,
|
|
161
|
+
queryFn: () => sdk['support']['webhook']['get'](input),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export const supportWebhookListQueryOptions = (sdk: GeneratedClient, input: SupportWebhookListInput) => ({
|
|
165
|
+
queryKey: ['support', 'webhook', 'list', input] as const,
|
|
166
|
+
queryFn: () => sdk['support']['webhook']['list'](input),
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export const supportWebhookRedeliverMutationOptions = (sdk: GeneratedClient) => ({
|
|
170
|
+
mutationKey: ['support', 'webhook', 'redeliver'],
|
|
171
|
+
mutationFn: (input: SupportWebhookRedeliverInput) => sdk['support']['webhook']['redeliver'](input),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export const supportWebhookRotateSecretMutationOptions = (sdk: GeneratedClient) => ({
|
|
175
|
+
mutationKey: ['support', 'webhook-rotate', 'secret'],
|
|
176
|
+
mutationFn: (input: SupportWebhookRotateSecretInput) => sdk['support']['webhook-rotate']['secret'](input),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
export const supportWebhookUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
180
|
+
mutationKey: ['support', 'webhook', 'update'],
|
|
181
|
+
mutationFn: (input: SupportWebhookUpdateInput) => sdk['support']['webhook']['update'](input),
|
|
182
|
+
});
|