getricky 0.1.11 → 0.1.13
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/cjs/generated/idempotency.gen.js +9 -0
- package/dist/cjs/generated/index.d.ts +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +92 -4
- package/dist/cjs/generated/sdk.gen.js +200 -3
- package/dist/cjs/generated/types.gen.d.ts +1145 -14
- package/dist/esm/generated/idempotency.gen.js +9 -0
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/sdk.gen.d.ts +92 -4
- package/dist/esm/generated/sdk.gen.js +200 -3
- package/dist/esm/generated/types.gen.d.ts +1145 -14
- package/package.json +1 -1
|
@@ -898,7 +898,7 @@ export type KnowledgeFile = {
|
|
|
898
898
|
*/
|
|
899
899
|
size_bytes: number;
|
|
900
900
|
/**
|
|
901
|
-
* `uploading` until `POST /knowledge/files/{file_id}/complete` reads it; then `ready
|
|
901
|
+
* `uploading` until `POST /knowledge/files/{file_id}/complete` reads it; then `ready`, also when Ricky could not read useful content, which `extraction_error` then says. Ricky does not set `failed` today.
|
|
902
902
|
*/
|
|
903
903
|
status: 'uploading' | 'ready' | 'failed';
|
|
904
904
|
/**
|
|
@@ -2276,6 +2276,19 @@ export type ResolutionsReport = {
|
|
|
2276
2276
|
*/
|
|
2277
2277
|
generated_at: string;
|
|
2278
2278
|
};
|
|
2279
|
+
/**
|
|
2280
|
+
* An appointment state of the Odoo installation, one of those a reminder workflow can remind.
|
|
2281
|
+
*/
|
|
2282
|
+
export type AppointmentState = {
|
|
2283
|
+
/**
|
|
2284
|
+
* State as Odoo stores it.
|
|
2285
|
+
*/
|
|
2286
|
+
value: string;
|
|
2287
|
+
/**
|
|
2288
|
+
* State as Odoo shows it.
|
|
2289
|
+
*/
|
|
2290
|
+
label: string;
|
|
2291
|
+
};
|
|
2279
2292
|
/**
|
|
2280
2293
|
* The Odoo appointments a reminder workflow would message on a coming day.
|
|
2281
2294
|
*/
|
|
@@ -2295,16 +2308,7 @@ export type ReminderPreview = {
|
|
|
2295
2308
|
/**
|
|
2296
2309
|
* Every appointment state the Odoo installation has.
|
|
2297
2310
|
*/
|
|
2298
|
-
appointment_states: Array<
|
|
2299
|
-
/**
|
|
2300
|
-
* State as Odoo stores it.
|
|
2301
|
-
*/
|
|
2302
|
-
value: string;
|
|
2303
|
-
/**
|
|
2304
|
-
* State as Odoo shows it.
|
|
2305
|
-
*/
|
|
2306
|
-
label: string;
|
|
2307
|
-
}>;
|
|
2311
|
+
appointment_states: Array<AppointmentState>;
|
|
2308
2312
|
/**
|
|
2309
2313
|
* Each appointment of that day in Odoo, in start order.
|
|
2310
2314
|
*/
|
|
@@ -2741,6 +2745,96 @@ export type WorkflowExecution = {
|
|
|
2741
2745
|
*/
|
|
2742
2746
|
processed_at: string | null;
|
|
2743
2747
|
};
|
|
2748
|
+
/**
|
|
2749
|
+
* Where to put the bytes of a file Ricky forwards to Meta.
|
|
2750
|
+
*/
|
|
2751
|
+
export type MediaUpload = {
|
|
2752
|
+
/**
|
|
2753
|
+
* Where the bytes wait in Ricky; send it to the `complete` operation.
|
|
2754
|
+
*/
|
|
2755
|
+
upload_path: string;
|
|
2756
|
+
/**
|
|
2757
|
+
* Signed URL valid for two hours. `PUT` the file bytes to it with `Content-Type` set to `mime_type`, then call the `complete` operation. Ricky deletes the file once it completes, whether or not Meta takes it.
|
|
2758
|
+
*/
|
|
2759
|
+
upload_url: string;
|
|
2760
|
+
};
|
|
2761
|
+
/**
|
|
2762
|
+
* A header sample Meta holds for a template review.
|
|
2763
|
+
*/
|
|
2764
|
+
export type TemplateMedia = {
|
|
2765
|
+
/**
|
|
2766
|
+
* Meta’s handle for the sample. Send it as `header.handle` of `POST /templates` or `PATCH /templates/{template_id}`.
|
|
2767
|
+
*/
|
|
2768
|
+
handle: string;
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* The contact fields that fill a template’s variables when Ricky sends it to a contact. They apply to the template’s name and language in its business account.
|
|
2772
|
+
*/
|
|
2773
|
+
export type TemplateFieldMappings = {
|
|
2774
|
+
/**
|
|
2775
|
+
* Template ID at Meta.
|
|
2776
|
+
*/
|
|
2777
|
+
template_id: string;
|
|
2778
|
+
/**
|
|
2779
|
+
* Every variable a contact field can fill: those of the header and the body, and each copy-code button or link that ends in a variable.
|
|
2780
|
+
*/
|
|
2781
|
+
variables: Array<{
|
|
2782
|
+
/**
|
|
2783
|
+
* Where the variable is.
|
|
2784
|
+
*/
|
|
2785
|
+
component: 'header' | 'body' | 'button';
|
|
2786
|
+
/**
|
|
2787
|
+
* The variable: its number or name, or the button position from `0` for a button.
|
|
2788
|
+
*/
|
|
2789
|
+
key: string;
|
|
2790
|
+
/**
|
|
2791
|
+
* The variable as the template writes it, for example `{{1}}`; for a button, its text.
|
|
2792
|
+
*/
|
|
2793
|
+
name: string | null;
|
|
2794
|
+
}>;
|
|
2795
|
+
/**
|
|
2796
|
+
* The variables that have a contact field; the others are filled by hand.
|
|
2797
|
+
*/
|
|
2798
|
+
mappings: Array<{
|
|
2799
|
+
/**
|
|
2800
|
+
* Where the variable is.
|
|
2801
|
+
*/
|
|
2802
|
+
component: 'header' | 'body' | 'button';
|
|
2803
|
+
/**
|
|
2804
|
+
* The variable it fills.
|
|
2805
|
+
*/
|
|
2806
|
+
key: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* The contact field whose value fills the variable.
|
|
2809
|
+
*/
|
|
2810
|
+
source: {
|
|
2811
|
+
kind: 'native';
|
|
2812
|
+
/**
|
|
2813
|
+
* A field every contact has.
|
|
2814
|
+
*/
|
|
2815
|
+
field: 'first_name' | 'last_name' | 'primary_phone' | 'primary_email' | 'company' | 'job_title' | 'birthday' | 'street_address' | 'city' | 'region' | 'postal_code' | 'country' | 'website_url' | 'linkedin_url' | 'lifecycle_stage' | 'lead_status' | 'source' | 'notes';
|
|
2816
|
+
} | {
|
|
2817
|
+
kind: 'custom';
|
|
2818
|
+
/**
|
|
2819
|
+
* A custom field, from `GET /contact-fields`.
|
|
2820
|
+
*/
|
|
2821
|
+
field_id: string;
|
|
2822
|
+
};
|
|
2823
|
+
}>;
|
|
2824
|
+
};
|
|
2825
|
+
/**
|
|
2826
|
+
* A display name change Meta is reviewing.
|
|
2827
|
+
*/
|
|
2828
|
+
export type DisplayNameRequest = {
|
|
2829
|
+
/**
|
|
2830
|
+
* The name sent to Meta for review.
|
|
2831
|
+
*/
|
|
2832
|
+
requested_display_name: string;
|
|
2833
|
+
/**
|
|
2834
|
+
* Meta reviews the name. When Meta approves it, the number’s `verified_name` and `name_status` change; `POST /whatsapp-numbers/{channel_id}/refresh` reads them.
|
|
2835
|
+
*/
|
|
2836
|
+
status: 'pending_review';
|
|
2837
|
+
};
|
|
2744
2838
|
/**
|
|
2745
2839
|
* The result of checking a template draft without submitting it.
|
|
2746
2840
|
*/
|
|
@@ -2847,6 +2941,43 @@ export type WhatsAppNumber = {
|
|
|
2847
2941
|
* When Ricky last read its details from Meta.
|
|
2848
2942
|
*/
|
|
2849
2943
|
last_synced_at: string | null;
|
|
2944
|
+
/**
|
|
2945
|
+
* Review status of the display name at Meta, in lowercase: for example `approved`, `pending_review` or `declined`.
|
|
2946
|
+
*/
|
|
2947
|
+
name_status: string | null;
|
|
2948
|
+
/**
|
|
2949
|
+
* The business profile customers see on WhatsApp, as Ricky last read it from Meta.
|
|
2950
|
+
*/
|
|
2951
|
+
business_profile: {
|
|
2952
|
+
/**
|
|
2953
|
+
* Short text under the business name.
|
|
2954
|
+
*/
|
|
2955
|
+
about: string | null;
|
|
2956
|
+
/**
|
|
2957
|
+
* Description of the business.
|
|
2958
|
+
*/
|
|
2959
|
+
description: string | null;
|
|
2960
|
+
/**
|
|
2961
|
+
* Address of the business.
|
|
2962
|
+
*/
|
|
2963
|
+
address: string | null;
|
|
2964
|
+
/**
|
|
2965
|
+
* Contact email.
|
|
2966
|
+
*/
|
|
2967
|
+
email: string | null;
|
|
2968
|
+
/**
|
|
2969
|
+
* Industry as Meta names it.
|
|
2970
|
+
*/
|
|
2971
|
+
vertical: string | null;
|
|
2972
|
+
/**
|
|
2973
|
+
* Website URLs.
|
|
2974
|
+
*/
|
|
2975
|
+
websites: Array<string>;
|
|
2976
|
+
/**
|
|
2977
|
+
* Link to the profile photo at Meta; it expires.
|
|
2978
|
+
*/
|
|
2979
|
+
profile_picture_url: string | null;
|
|
2980
|
+
};
|
|
2850
2981
|
};
|
|
2851
2982
|
/**
|
|
2852
2983
|
* Only `name` is required; it does not connect the agent to any channel.
|
|
@@ -4224,6 +4355,139 @@ export type UpdateWorkflow = {
|
|
|
4224
4355
|
};
|
|
4225
4356
|
};
|
|
4226
4357
|
};
|
|
4358
|
+
/**
|
|
4359
|
+
* Begins the upload of a header sample. Ricky answers where to `PUT` the bytes.
|
|
4360
|
+
*/
|
|
4361
|
+
export type CreateTemplateMediaUpload = {
|
|
4362
|
+
/**
|
|
4363
|
+
* WhatsApp channel whose business account will use the sample.
|
|
4364
|
+
*/
|
|
4365
|
+
channel_id: string;
|
|
4366
|
+
/**
|
|
4367
|
+
* JPEG or PNG up to 5 MB for an `IMAGE` header, MP4 or 3GPP up to 16 MB for `VIDEO`, PDF up to 100 MB for `DOCUMENT`.
|
|
4368
|
+
*/
|
|
4369
|
+
mime_type: 'image/jpeg' | 'image/png' | 'video/mp4' | 'video/3gpp' | 'application/pdf';
|
|
4370
|
+
/**
|
|
4371
|
+
* Exact size of the file you will upload.
|
|
4372
|
+
*/
|
|
4373
|
+
size_bytes: number;
|
|
4374
|
+
};
|
|
4375
|
+
/**
|
|
4376
|
+
* The upload to send to Meta, with the channel it began with.
|
|
4377
|
+
*/
|
|
4378
|
+
export type CompleteTemplateMediaUpload = {
|
|
4379
|
+
/**
|
|
4380
|
+
* WhatsApp channel whose business account will use the sample.
|
|
4381
|
+
*/
|
|
4382
|
+
channel_id: string;
|
|
4383
|
+
/**
|
|
4384
|
+
* The `upload_path` the upload began with.
|
|
4385
|
+
*/
|
|
4386
|
+
upload_path: string;
|
|
4387
|
+
};
|
|
4388
|
+
/**
|
|
4389
|
+
* The contact fields that fill the template’s variables when Ricky sends it.
|
|
4390
|
+
*/
|
|
4391
|
+
export type ReplaceTemplateFieldMappings = {
|
|
4392
|
+
/**
|
|
4393
|
+
* Every mapping of the template; the ones not sent are removed. Send `[]` to remove all.
|
|
4394
|
+
*/
|
|
4395
|
+
mappings: Array<{
|
|
4396
|
+
/**
|
|
4397
|
+
* Where the variable is: `header`, `body` or a `button`.
|
|
4398
|
+
*/
|
|
4399
|
+
component: 'header' | 'body' | 'button';
|
|
4400
|
+
/**
|
|
4401
|
+
* The variable: its number or name without braces, or the button position from `0` for a button.
|
|
4402
|
+
*/
|
|
4403
|
+
key: string;
|
|
4404
|
+
/**
|
|
4405
|
+
* The contact field whose value fills the variable.
|
|
4406
|
+
*/
|
|
4407
|
+
source: {
|
|
4408
|
+
kind: 'native';
|
|
4409
|
+
/**
|
|
4410
|
+
* A field every contact has.
|
|
4411
|
+
*/
|
|
4412
|
+
field: 'first_name' | 'last_name' | 'primary_phone' | 'primary_email' | 'company' | 'job_title' | 'birthday' | 'street_address' | 'city' | 'region' | 'postal_code' | 'country' | 'website_url' | 'linkedin_url' | 'lifecycle_stage' | 'lead_status' | 'source' | 'notes';
|
|
4413
|
+
} | {
|
|
4414
|
+
kind: 'custom';
|
|
4415
|
+
/**
|
|
4416
|
+
* A custom field, from `GET /contact-fields`.
|
|
4417
|
+
*/
|
|
4418
|
+
field_id: string;
|
|
4419
|
+
};
|
|
4420
|
+
}>;
|
|
4421
|
+
};
|
|
4422
|
+
/**
|
|
4423
|
+
* The settings of the number that Ricky changes at Meta.
|
|
4424
|
+
*/
|
|
4425
|
+
export type UpdateWhatsAppNumber = {
|
|
4426
|
+
/**
|
|
4427
|
+
* Whether customers can call the number and reach the AI agent.
|
|
4428
|
+
*/
|
|
4429
|
+
calls_enabled: boolean;
|
|
4430
|
+
};
|
|
4431
|
+
/**
|
|
4432
|
+
* Only the fields you send change; Meta checks the values too.
|
|
4433
|
+
*/
|
|
4434
|
+
export type UpdateWhatsAppBusinessProfile = {
|
|
4435
|
+
/**
|
|
4436
|
+
* Short text under the business name, up to 139 characters.
|
|
4437
|
+
*/
|
|
4438
|
+
about?: string;
|
|
4439
|
+
/**
|
|
4440
|
+
* Description of the business, up to 512 characters.
|
|
4441
|
+
*/
|
|
4442
|
+
description?: string;
|
|
4443
|
+
/**
|
|
4444
|
+
* Address of the business, up to 256 characters.
|
|
4445
|
+
*/
|
|
4446
|
+
address?: string;
|
|
4447
|
+
/**
|
|
4448
|
+
* Contact email, up to 128 characters.
|
|
4449
|
+
*/
|
|
4450
|
+
email?: string;
|
|
4451
|
+
/**
|
|
4452
|
+
* Industry, in the values Meta accepts; `""` for none.
|
|
4453
|
+
*/
|
|
4454
|
+
vertical?: '' | 'ALCOHOL' | 'APPAREL' | 'AUTO' | 'BEAUTY' | 'EDU' | 'ENTERTAIN' | 'EVENT_PLAN' | 'FINANCE' | 'GOVT' | 'GROCERY' | 'HEALTH' | 'HOTEL' | 'NONPROFIT' | 'ONLINE_GAMBLING' | 'OTC_DRUGS' | 'OTHER' | 'PHYSICAL_GAMBLING' | 'PROF_SERVICES' | 'RESTAURANT' | 'RETAIL' | 'TRAVEL';
|
|
4455
|
+
/**
|
|
4456
|
+
* Up to two website URLs; the list replaces the current one.
|
|
4457
|
+
*/
|
|
4458
|
+
websites?: Array<string>;
|
|
4459
|
+
};
|
|
4460
|
+
/**
|
|
4461
|
+
* Begins the upload of a profile photo. Ricky answers where to `PUT` the bytes.
|
|
4462
|
+
*/
|
|
4463
|
+
export type CreateProfilePhotoUpload = {
|
|
4464
|
+
/**
|
|
4465
|
+
* JPEG or PNG, up to 5 MB.
|
|
4466
|
+
*/
|
|
4467
|
+
mime_type: 'image/jpeg' | 'image/png';
|
|
4468
|
+
/**
|
|
4469
|
+
* Exact size of the file you will upload.
|
|
4470
|
+
*/
|
|
4471
|
+
size_bytes: number;
|
|
4472
|
+
};
|
|
4473
|
+
/**
|
|
4474
|
+
* The upload to set as the profile photo.
|
|
4475
|
+
*/
|
|
4476
|
+
export type CompleteProfilePhotoUpload = {
|
|
4477
|
+
/**
|
|
4478
|
+
* The `upload_path` the upload began with.
|
|
4479
|
+
*/
|
|
4480
|
+
upload_path: string;
|
|
4481
|
+
};
|
|
4482
|
+
/**
|
|
4483
|
+
* A new display name for Meta to review.
|
|
4484
|
+
*/
|
|
4485
|
+
export type RequestDisplayName = {
|
|
4486
|
+
/**
|
|
4487
|
+
* The business name to show on the number. Meta reviews it against its rules.
|
|
4488
|
+
*/
|
|
4489
|
+
display_name: string;
|
|
4490
|
+
};
|
|
4227
4491
|
/**
|
|
4228
4492
|
* A template draft. Ricky checks it as `POST /templates/validate` does, then submits it.
|
|
4229
4493
|
*/
|
|
@@ -4249,7 +4513,7 @@ export type CreateTemplate = {
|
|
|
4249
4513
|
*/
|
|
4250
4514
|
parameter_format?: 'NAMED' | 'POSITIONAL';
|
|
4251
4515
|
/**
|
|
4252
|
-
* `TEXT` or `LOCATION`. Send `null` for no header.
|
|
4516
|
+
* `TEXT`, `IMAGE`, `VIDEO`, `DOCUMENT` or `LOCATION`. Send `null` for no header.
|
|
4253
4517
|
*/
|
|
4254
4518
|
header?: {
|
|
4255
4519
|
type: 'TEXT';
|
|
@@ -4261,6 +4525,24 @@ export type CreateTemplate = {
|
|
|
4261
4525
|
* Example value of the header variable; required when it has one.
|
|
4262
4526
|
*/
|
|
4263
4527
|
example?: string;
|
|
4528
|
+
} | {
|
|
4529
|
+
type: 'IMAGE';
|
|
4530
|
+
/**
|
|
4531
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4532
|
+
*/
|
|
4533
|
+
handle: string;
|
|
4534
|
+
} | {
|
|
4535
|
+
type: 'VIDEO';
|
|
4536
|
+
/**
|
|
4537
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4538
|
+
*/
|
|
4539
|
+
handle: string;
|
|
4540
|
+
} | {
|
|
4541
|
+
type: 'DOCUMENT';
|
|
4542
|
+
/**
|
|
4543
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4544
|
+
*/
|
|
4545
|
+
handle: string;
|
|
4264
4546
|
} | {
|
|
4265
4547
|
type: 'LOCATION';
|
|
4266
4548
|
} | null;
|
|
@@ -4334,7 +4616,7 @@ export type ValidateTemplate = {
|
|
|
4334
4616
|
*/
|
|
4335
4617
|
parameter_format?: 'NAMED' | 'POSITIONAL';
|
|
4336
4618
|
/**
|
|
4337
|
-
* `TEXT` or `LOCATION`. Send `null` for no header.
|
|
4619
|
+
* `TEXT`, `IMAGE`, `VIDEO`, `DOCUMENT` or `LOCATION`. Send `null` for no header.
|
|
4338
4620
|
*/
|
|
4339
4621
|
header?: {
|
|
4340
4622
|
type: 'TEXT';
|
|
@@ -4346,6 +4628,24 @@ export type ValidateTemplate = {
|
|
|
4346
4628
|
* Example value of the header variable; required when it has one.
|
|
4347
4629
|
*/
|
|
4348
4630
|
example?: string;
|
|
4631
|
+
} | {
|
|
4632
|
+
type: 'IMAGE';
|
|
4633
|
+
/**
|
|
4634
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4635
|
+
*/
|
|
4636
|
+
handle: string;
|
|
4637
|
+
} | {
|
|
4638
|
+
type: 'VIDEO';
|
|
4639
|
+
/**
|
|
4640
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4641
|
+
*/
|
|
4642
|
+
handle: string;
|
|
4643
|
+
} | {
|
|
4644
|
+
type: 'DOCUMENT';
|
|
4645
|
+
/**
|
|
4646
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4647
|
+
*/
|
|
4648
|
+
handle: string;
|
|
4349
4649
|
} | {
|
|
4350
4650
|
type: 'LOCATION';
|
|
4351
4651
|
} | null;
|
|
@@ -4403,7 +4703,7 @@ export type UpdateTemplate = {
|
|
|
4403
4703
|
*/
|
|
4404
4704
|
category?: 'MARKETING' | 'UTILITY';
|
|
4405
4705
|
/**
|
|
4406
|
-
* `TEXT` or `LOCATION`. Send `null` for no header.
|
|
4706
|
+
* `TEXT`, `IMAGE`, `VIDEO`, `DOCUMENT` or `LOCATION`. Send `null` for no header.
|
|
4407
4707
|
*/
|
|
4408
4708
|
header?: {
|
|
4409
4709
|
type: 'TEXT';
|
|
@@ -4415,6 +4715,24 @@ export type UpdateTemplate = {
|
|
|
4415
4715
|
* Example value of the header variable; required when it has one.
|
|
4416
4716
|
*/
|
|
4417
4717
|
example?: string;
|
|
4718
|
+
} | {
|
|
4719
|
+
type: 'IMAGE';
|
|
4720
|
+
/**
|
|
4721
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4722
|
+
*/
|
|
4723
|
+
handle: string;
|
|
4724
|
+
} | {
|
|
4725
|
+
type: 'VIDEO';
|
|
4726
|
+
/**
|
|
4727
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4728
|
+
*/
|
|
4729
|
+
handle: string;
|
|
4730
|
+
} | {
|
|
4731
|
+
type: 'DOCUMENT';
|
|
4732
|
+
/**
|
|
4733
|
+
* Handle of the sample file, from `POST /templates/media/complete`. Messages sent with the template carry their own file.
|
|
4734
|
+
*/
|
|
4735
|
+
handle: string;
|
|
4418
4736
|
} | {
|
|
4419
4737
|
type: 'LOCATION';
|
|
4420
4738
|
} | null;
|
|
@@ -6669,6 +6987,61 @@ export type GetWorkflowReminderHistoryResponses = {
|
|
|
6669
6987
|
};
|
|
6670
6988
|
};
|
|
6671
6989
|
export type GetWorkflowReminderHistoryResponse = GetWorkflowReminderHistoryResponses[keyof GetWorkflowReminderHistoryResponses];
|
|
6990
|
+
export type ListWorkflowReminderStatesData = {
|
|
6991
|
+
body?: never;
|
|
6992
|
+
path: {
|
|
6993
|
+
/**
|
|
6994
|
+
* Workflow ID.
|
|
6995
|
+
*/
|
|
6996
|
+
workflow_id: string;
|
|
6997
|
+
};
|
|
6998
|
+
query?: never;
|
|
6999
|
+
url: '/workflows/{workflow_id}/reminders/state-options';
|
|
7000
|
+
};
|
|
7001
|
+
export type ListWorkflowReminderStatesErrors = {
|
|
7002
|
+
/**
|
|
7003
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
7004
|
+
*/
|
|
7005
|
+
401: Error;
|
|
7006
|
+
/**
|
|
7007
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
7008
|
+
*/
|
|
7009
|
+
403: Error;
|
|
7010
|
+
/**
|
|
7011
|
+
* `not_found`: The resource does not exist in this organization.
|
|
7012
|
+
*/
|
|
7013
|
+
404: Error;
|
|
7014
|
+
/**
|
|
7015
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
7016
|
+
*/
|
|
7017
|
+
422: Error;
|
|
7018
|
+
/**
|
|
7019
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
7020
|
+
*/
|
|
7021
|
+
429: Error;
|
|
7022
|
+
/**
|
|
7023
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
7024
|
+
*/
|
|
7025
|
+
500: Error;
|
|
7026
|
+
/**
|
|
7027
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
7028
|
+
*/
|
|
7029
|
+
502: Error;
|
|
7030
|
+
};
|
|
7031
|
+
export type ListWorkflowReminderStatesError = ListWorkflowReminderStatesErrors[keyof ListWorkflowReminderStatesErrors];
|
|
7032
|
+
export type ListWorkflowReminderStatesResponses = {
|
|
7033
|
+
/**
|
|
7034
|
+
* Success.
|
|
7035
|
+
*/
|
|
7036
|
+
200: {
|
|
7037
|
+
data: Array<AppointmentState>;
|
|
7038
|
+
/**
|
|
7039
|
+
* Pass as `cursor` for the next page; null on the last page.
|
|
7040
|
+
*/
|
|
7041
|
+
next_cursor: string | null;
|
|
7042
|
+
};
|
|
7043
|
+
};
|
|
7044
|
+
export type ListWorkflowReminderStatesResponse = ListWorkflowReminderStatesResponses[keyof ListWorkflowReminderStatesResponses];
|
|
6672
7045
|
export type GetDashboardReportData = {
|
|
6673
7046
|
body?: never;
|
|
6674
7047
|
path?: never;
|
|
@@ -9561,6 +9934,764 @@ export type GetWhatsAppNumberResponses = {
|
|
|
9561
9934
|
};
|
|
9562
9935
|
};
|
|
9563
9936
|
export type GetWhatsAppNumberResponse = GetWhatsAppNumberResponses[keyof GetWhatsAppNumberResponses];
|
|
9937
|
+
export type UpdateWhatsAppNumberData = {
|
|
9938
|
+
body: UpdateWhatsAppNumber;
|
|
9939
|
+
headers?: {
|
|
9940
|
+
/**
|
|
9941
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
9942
|
+
*/
|
|
9943
|
+
'Idempotency-Key'?: string;
|
|
9944
|
+
};
|
|
9945
|
+
path: {
|
|
9946
|
+
/**
|
|
9947
|
+
* Channel ID.
|
|
9948
|
+
*/
|
|
9949
|
+
channel_id: string;
|
|
9950
|
+
};
|
|
9951
|
+
query?: never;
|
|
9952
|
+
url: '/whatsapp-numbers/{channel_id}';
|
|
9953
|
+
};
|
|
9954
|
+
export type UpdateWhatsAppNumberErrors = {
|
|
9955
|
+
/**
|
|
9956
|
+
* `invalid_json`: The body is not valid JSON.
|
|
9957
|
+
*
|
|
9958
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
9959
|
+
*/
|
|
9960
|
+
400: Error;
|
|
9961
|
+
/**
|
|
9962
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
9963
|
+
*/
|
|
9964
|
+
401: Error;
|
|
9965
|
+
/**
|
|
9966
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
9967
|
+
*/
|
|
9968
|
+
403: Error;
|
|
9969
|
+
/**
|
|
9970
|
+
* `not_found`: The resource does not exist in this organization.
|
|
9971
|
+
*/
|
|
9972
|
+
404: Error;
|
|
9973
|
+
/**
|
|
9974
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
9975
|
+
*
|
|
9976
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
9977
|
+
*/
|
|
9978
|
+
409: Error;
|
|
9979
|
+
/**
|
|
9980
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
9981
|
+
*/
|
|
9982
|
+
413: Error;
|
|
9983
|
+
/**
|
|
9984
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
9985
|
+
*/
|
|
9986
|
+
415: Error;
|
|
9987
|
+
/**
|
|
9988
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
9989
|
+
*/
|
|
9990
|
+
422: Error;
|
|
9991
|
+
/**
|
|
9992
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
9993
|
+
*/
|
|
9994
|
+
429: Error;
|
|
9995
|
+
/**
|
|
9996
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
9997
|
+
*/
|
|
9998
|
+
500: Error;
|
|
9999
|
+
/**
|
|
10000
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10001
|
+
*/
|
|
10002
|
+
502: Error;
|
|
10003
|
+
/**
|
|
10004
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10005
|
+
*/
|
|
10006
|
+
503: Error;
|
|
10007
|
+
};
|
|
10008
|
+
export type UpdateWhatsAppNumberError = UpdateWhatsAppNumberErrors[keyof UpdateWhatsAppNumberErrors];
|
|
10009
|
+
export type UpdateWhatsAppNumberResponses = {
|
|
10010
|
+
/**
|
|
10011
|
+
* Success.
|
|
10012
|
+
*/
|
|
10013
|
+
200: {
|
|
10014
|
+
data: WhatsAppNumber;
|
|
10015
|
+
};
|
|
10016
|
+
};
|
|
10017
|
+
export type UpdateWhatsAppNumberResponse = UpdateWhatsAppNumberResponses[keyof UpdateWhatsAppNumberResponses];
|
|
10018
|
+
export type CreateTemplateMediaUploadData = {
|
|
10019
|
+
body: CreateTemplateMediaUpload;
|
|
10020
|
+
headers?: {
|
|
10021
|
+
/**
|
|
10022
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10023
|
+
*/
|
|
10024
|
+
'Idempotency-Key'?: string;
|
|
10025
|
+
};
|
|
10026
|
+
path?: never;
|
|
10027
|
+
query?: never;
|
|
10028
|
+
url: '/templates/media';
|
|
10029
|
+
};
|
|
10030
|
+
export type CreateTemplateMediaUploadErrors = {
|
|
10031
|
+
/**
|
|
10032
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10033
|
+
*
|
|
10034
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10035
|
+
*/
|
|
10036
|
+
400: Error;
|
|
10037
|
+
/**
|
|
10038
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10039
|
+
*/
|
|
10040
|
+
401: Error;
|
|
10041
|
+
/**
|
|
10042
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10043
|
+
*/
|
|
10044
|
+
403: Error;
|
|
10045
|
+
/**
|
|
10046
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10047
|
+
*/
|
|
10048
|
+
404: Error;
|
|
10049
|
+
/**
|
|
10050
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10051
|
+
*
|
|
10052
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10053
|
+
*/
|
|
10054
|
+
409: Error;
|
|
10055
|
+
/**
|
|
10056
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10057
|
+
*/
|
|
10058
|
+
413: Error;
|
|
10059
|
+
/**
|
|
10060
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10061
|
+
*/
|
|
10062
|
+
415: Error;
|
|
10063
|
+
/**
|
|
10064
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10065
|
+
*/
|
|
10066
|
+
422: Error;
|
|
10067
|
+
/**
|
|
10068
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10069
|
+
*/
|
|
10070
|
+
429: Error;
|
|
10071
|
+
/**
|
|
10072
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10073
|
+
*/
|
|
10074
|
+
500: Error;
|
|
10075
|
+
/**
|
|
10076
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10077
|
+
*/
|
|
10078
|
+
502: Error;
|
|
10079
|
+
/**
|
|
10080
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10081
|
+
*/
|
|
10082
|
+
503: Error;
|
|
10083
|
+
};
|
|
10084
|
+
export type CreateTemplateMediaUploadError = CreateTemplateMediaUploadErrors[keyof CreateTemplateMediaUploadErrors];
|
|
10085
|
+
export type CreateTemplateMediaUploadResponses = {
|
|
10086
|
+
/**
|
|
10087
|
+
* Success.
|
|
10088
|
+
*/
|
|
10089
|
+
201: {
|
|
10090
|
+
data: MediaUpload;
|
|
10091
|
+
};
|
|
10092
|
+
};
|
|
10093
|
+
export type CreateTemplateMediaUploadResponse = CreateTemplateMediaUploadResponses[keyof CreateTemplateMediaUploadResponses];
|
|
10094
|
+
export type CompleteTemplateMediaUploadData = {
|
|
10095
|
+
body: CompleteTemplateMediaUpload;
|
|
10096
|
+
headers?: {
|
|
10097
|
+
/**
|
|
10098
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10099
|
+
*/
|
|
10100
|
+
'Idempotency-Key'?: string;
|
|
10101
|
+
};
|
|
10102
|
+
path?: never;
|
|
10103
|
+
query?: never;
|
|
10104
|
+
url: '/templates/media/complete';
|
|
10105
|
+
};
|
|
10106
|
+
export type CompleteTemplateMediaUploadErrors = {
|
|
10107
|
+
/**
|
|
10108
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10109
|
+
*
|
|
10110
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10111
|
+
*/
|
|
10112
|
+
400: Error;
|
|
10113
|
+
/**
|
|
10114
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10115
|
+
*/
|
|
10116
|
+
401: Error;
|
|
10117
|
+
/**
|
|
10118
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10119
|
+
*/
|
|
10120
|
+
403: Error;
|
|
10121
|
+
/**
|
|
10122
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10123
|
+
*/
|
|
10124
|
+
404: Error;
|
|
10125
|
+
/**
|
|
10126
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10127
|
+
*
|
|
10128
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10129
|
+
*/
|
|
10130
|
+
409: Error;
|
|
10131
|
+
/**
|
|
10132
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10133
|
+
*/
|
|
10134
|
+
413: Error;
|
|
10135
|
+
/**
|
|
10136
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10137
|
+
*/
|
|
10138
|
+
415: Error;
|
|
10139
|
+
/**
|
|
10140
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10141
|
+
*/
|
|
10142
|
+
422: Error;
|
|
10143
|
+
/**
|
|
10144
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10145
|
+
*/
|
|
10146
|
+
429: Error;
|
|
10147
|
+
/**
|
|
10148
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10149
|
+
*/
|
|
10150
|
+
500: Error;
|
|
10151
|
+
/**
|
|
10152
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10153
|
+
*/
|
|
10154
|
+
502: Error;
|
|
10155
|
+
/**
|
|
10156
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10157
|
+
*/
|
|
10158
|
+
503: Error;
|
|
10159
|
+
};
|
|
10160
|
+
export type CompleteTemplateMediaUploadError = CompleteTemplateMediaUploadErrors[keyof CompleteTemplateMediaUploadErrors];
|
|
10161
|
+
export type CompleteTemplateMediaUploadResponses = {
|
|
10162
|
+
/**
|
|
10163
|
+
* Success.
|
|
10164
|
+
*/
|
|
10165
|
+
200: {
|
|
10166
|
+
data: TemplateMedia;
|
|
10167
|
+
};
|
|
10168
|
+
};
|
|
10169
|
+
export type CompleteTemplateMediaUploadResponse = CompleteTemplateMediaUploadResponses[keyof CompleteTemplateMediaUploadResponses];
|
|
10170
|
+
export type GetTemplateFieldMappingsData = {
|
|
10171
|
+
body?: never;
|
|
10172
|
+
path: {
|
|
10173
|
+
/**
|
|
10174
|
+
* Template ID.
|
|
10175
|
+
*/
|
|
10176
|
+
template_id: string;
|
|
10177
|
+
};
|
|
10178
|
+
query?: never;
|
|
10179
|
+
url: '/templates/{template_id}/field-mappings';
|
|
10180
|
+
};
|
|
10181
|
+
export type GetTemplateFieldMappingsErrors = {
|
|
10182
|
+
/**
|
|
10183
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10184
|
+
*/
|
|
10185
|
+
400: Error;
|
|
10186
|
+
/**
|
|
10187
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10188
|
+
*/
|
|
10189
|
+
401: Error;
|
|
10190
|
+
/**
|
|
10191
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10192
|
+
*/
|
|
10193
|
+
403: Error;
|
|
10194
|
+
/**
|
|
10195
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10196
|
+
*/
|
|
10197
|
+
404: Error;
|
|
10198
|
+
/**
|
|
10199
|
+
* `conflict`: The resource changed in a way that prevents the operation.
|
|
10200
|
+
*/
|
|
10201
|
+
409: Error;
|
|
10202
|
+
/**
|
|
10203
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10204
|
+
*/
|
|
10205
|
+
429: Error;
|
|
10206
|
+
/**
|
|
10207
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10208
|
+
*/
|
|
10209
|
+
500: Error;
|
|
10210
|
+
/**
|
|
10211
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10212
|
+
*/
|
|
10213
|
+
502: Error;
|
|
10214
|
+
};
|
|
10215
|
+
export type GetTemplateFieldMappingsError = GetTemplateFieldMappingsErrors[keyof GetTemplateFieldMappingsErrors];
|
|
10216
|
+
export type GetTemplateFieldMappingsResponses = {
|
|
10217
|
+
/**
|
|
10218
|
+
* Success.
|
|
10219
|
+
*/
|
|
10220
|
+
200: {
|
|
10221
|
+
data: TemplateFieldMappings;
|
|
10222
|
+
};
|
|
10223
|
+
};
|
|
10224
|
+
export type GetTemplateFieldMappingsResponse = GetTemplateFieldMappingsResponses[keyof GetTemplateFieldMappingsResponses];
|
|
10225
|
+
export type ReplaceTemplateFieldMappingsData = {
|
|
10226
|
+
body: ReplaceTemplateFieldMappings;
|
|
10227
|
+
headers?: {
|
|
10228
|
+
/**
|
|
10229
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10230
|
+
*/
|
|
10231
|
+
'Idempotency-Key'?: string;
|
|
10232
|
+
};
|
|
10233
|
+
path: {
|
|
10234
|
+
/**
|
|
10235
|
+
* Template ID.
|
|
10236
|
+
*/
|
|
10237
|
+
template_id: string;
|
|
10238
|
+
};
|
|
10239
|
+
query?: never;
|
|
10240
|
+
url: '/templates/{template_id}/field-mappings';
|
|
10241
|
+
};
|
|
10242
|
+
export type ReplaceTemplateFieldMappingsErrors = {
|
|
10243
|
+
/**
|
|
10244
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10245
|
+
*
|
|
10246
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10247
|
+
*/
|
|
10248
|
+
400: Error;
|
|
10249
|
+
/**
|
|
10250
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10251
|
+
*/
|
|
10252
|
+
401: Error;
|
|
10253
|
+
/**
|
|
10254
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10255
|
+
*/
|
|
10256
|
+
403: Error;
|
|
10257
|
+
/**
|
|
10258
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10259
|
+
*/
|
|
10260
|
+
404: Error;
|
|
10261
|
+
/**
|
|
10262
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10263
|
+
*
|
|
10264
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10265
|
+
*
|
|
10266
|
+
* `conflict`: The resource changed in a way that prevents the operation.
|
|
10267
|
+
*/
|
|
10268
|
+
409: Error;
|
|
10269
|
+
/**
|
|
10270
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10271
|
+
*/
|
|
10272
|
+
413: Error;
|
|
10273
|
+
/**
|
|
10274
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10275
|
+
*/
|
|
10276
|
+
415: Error;
|
|
10277
|
+
/**
|
|
10278
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10279
|
+
*/
|
|
10280
|
+
429: Error;
|
|
10281
|
+
/**
|
|
10282
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10283
|
+
*/
|
|
10284
|
+
500: Error;
|
|
10285
|
+
/**
|
|
10286
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10287
|
+
*/
|
|
10288
|
+
502: Error;
|
|
10289
|
+
};
|
|
10290
|
+
export type ReplaceTemplateFieldMappingsError = ReplaceTemplateFieldMappingsErrors[keyof ReplaceTemplateFieldMappingsErrors];
|
|
10291
|
+
export type ReplaceTemplateFieldMappingsResponses = {
|
|
10292
|
+
/**
|
|
10293
|
+
* Success.
|
|
10294
|
+
*/
|
|
10295
|
+
200: {
|
|
10296
|
+
data: TemplateFieldMappings;
|
|
10297
|
+
};
|
|
10298
|
+
};
|
|
10299
|
+
export type ReplaceTemplateFieldMappingsResponse = ReplaceTemplateFieldMappingsResponses[keyof ReplaceTemplateFieldMappingsResponses];
|
|
10300
|
+
export type UpdateWhatsAppBusinessProfileData = {
|
|
10301
|
+
body: UpdateWhatsAppBusinessProfile;
|
|
10302
|
+
headers?: {
|
|
10303
|
+
/**
|
|
10304
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10305
|
+
*/
|
|
10306
|
+
'Idempotency-Key'?: string;
|
|
10307
|
+
};
|
|
10308
|
+
path: {
|
|
10309
|
+
/**
|
|
10310
|
+
* Channel ID.
|
|
10311
|
+
*/
|
|
10312
|
+
channel_id: string;
|
|
10313
|
+
};
|
|
10314
|
+
query?: never;
|
|
10315
|
+
url: '/whatsapp-numbers/{channel_id}/business-profile';
|
|
10316
|
+
};
|
|
10317
|
+
export type UpdateWhatsAppBusinessProfileErrors = {
|
|
10318
|
+
/**
|
|
10319
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10320
|
+
*
|
|
10321
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10322
|
+
*/
|
|
10323
|
+
400: Error;
|
|
10324
|
+
/**
|
|
10325
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10326
|
+
*/
|
|
10327
|
+
401: Error;
|
|
10328
|
+
/**
|
|
10329
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10330
|
+
*/
|
|
10331
|
+
403: Error;
|
|
10332
|
+
/**
|
|
10333
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10334
|
+
*/
|
|
10335
|
+
404: Error;
|
|
10336
|
+
/**
|
|
10337
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10338
|
+
*
|
|
10339
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10340
|
+
*/
|
|
10341
|
+
409: Error;
|
|
10342
|
+
/**
|
|
10343
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10344
|
+
*/
|
|
10345
|
+
413: Error;
|
|
10346
|
+
/**
|
|
10347
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10348
|
+
*/
|
|
10349
|
+
415: Error;
|
|
10350
|
+
/**
|
|
10351
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10352
|
+
*/
|
|
10353
|
+
422: Error;
|
|
10354
|
+
/**
|
|
10355
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10356
|
+
*/
|
|
10357
|
+
429: Error;
|
|
10358
|
+
/**
|
|
10359
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10360
|
+
*/
|
|
10361
|
+
500: Error;
|
|
10362
|
+
/**
|
|
10363
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10364
|
+
*/
|
|
10365
|
+
502: Error;
|
|
10366
|
+
/**
|
|
10367
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10368
|
+
*/
|
|
10369
|
+
503: Error;
|
|
10370
|
+
};
|
|
10371
|
+
export type UpdateWhatsAppBusinessProfileError = UpdateWhatsAppBusinessProfileErrors[keyof UpdateWhatsAppBusinessProfileErrors];
|
|
10372
|
+
export type UpdateWhatsAppBusinessProfileResponses = {
|
|
10373
|
+
/**
|
|
10374
|
+
* Success.
|
|
10375
|
+
*/
|
|
10376
|
+
200: {
|
|
10377
|
+
data: WhatsAppNumber;
|
|
10378
|
+
};
|
|
10379
|
+
};
|
|
10380
|
+
export type UpdateWhatsAppBusinessProfileResponse = UpdateWhatsAppBusinessProfileResponses[keyof UpdateWhatsAppBusinessProfileResponses];
|
|
10381
|
+
export type CreateProfilePhotoUploadData = {
|
|
10382
|
+
body: CreateProfilePhotoUpload;
|
|
10383
|
+
headers?: {
|
|
10384
|
+
/**
|
|
10385
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10386
|
+
*/
|
|
10387
|
+
'Idempotency-Key'?: string;
|
|
10388
|
+
};
|
|
10389
|
+
path: {
|
|
10390
|
+
/**
|
|
10391
|
+
* Channel ID.
|
|
10392
|
+
*/
|
|
10393
|
+
channel_id: string;
|
|
10394
|
+
};
|
|
10395
|
+
query?: never;
|
|
10396
|
+
url: '/whatsapp-numbers/{channel_id}/profile-photo';
|
|
10397
|
+
};
|
|
10398
|
+
export type CreateProfilePhotoUploadErrors = {
|
|
10399
|
+
/**
|
|
10400
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10401
|
+
*
|
|
10402
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10403
|
+
*/
|
|
10404
|
+
400: Error;
|
|
10405
|
+
/**
|
|
10406
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10407
|
+
*/
|
|
10408
|
+
401: Error;
|
|
10409
|
+
/**
|
|
10410
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10411
|
+
*/
|
|
10412
|
+
403: Error;
|
|
10413
|
+
/**
|
|
10414
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10415
|
+
*/
|
|
10416
|
+
404: Error;
|
|
10417
|
+
/**
|
|
10418
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10419
|
+
*
|
|
10420
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10421
|
+
*/
|
|
10422
|
+
409: Error;
|
|
10423
|
+
/**
|
|
10424
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10425
|
+
*/
|
|
10426
|
+
413: Error;
|
|
10427
|
+
/**
|
|
10428
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10429
|
+
*/
|
|
10430
|
+
415: Error;
|
|
10431
|
+
/**
|
|
10432
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10433
|
+
*/
|
|
10434
|
+
422: Error;
|
|
10435
|
+
/**
|
|
10436
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10437
|
+
*/
|
|
10438
|
+
429: Error;
|
|
10439
|
+
/**
|
|
10440
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10441
|
+
*/
|
|
10442
|
+
500: Error;
|
|
10443
|
+
/**
|
|
10444
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10445
|
+
*/
|
|
10446
|
+
502: Error;
|
|
10447
|
+
/**
|
|
10448
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10449
|
+
*/
|
|
10450
|
+
503: Error;
|
|
10451
|
+
};
|
|
10452
|
+
export type CreateProfilePhotoUploadError = CreateProfilePhotoUploadErrors[keyof CreateProfilePhotoUploadErrors];
|
|
10453
|
+
export type CreateProfilePhotoUploadResponses = {
|
|
10454
|
+
/**
|
|
10455
|
+
* Success.
|
|
10456
|
+
*/
|
|
10457
|
+
201: {
|
|
10458
|
+
data: MediaUpload;
|
|
10459
|
+
};
|
|
10460
|
+
};
|
|
10461
|
+
export type CreateProfilePhotoUploadResponse = CreateProfilePhotoUploadResponses[keyof CreateProfilePhotoUploadResponses];
|
|
10462
|
+
export type CompleteProfilePhotoUploadData = {
|
|
10463
|
+
body: CompleteProfilePhotoUpload;
|
|
10464
|
+
headers?: {
|
|
10465
|
+
/**
|
|
10466
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10467
|
+
*/
|
|
10468
|
+
'Idempotency-Key'?: string;
|
|
10469
|
+
};
|
|
10470
|
+
path: {
|
|
10471
|
+
/**
|
|
10472
|
+
* Channel ID.
|
|
10473
|
+
*/
|
|
10474
|
+
channel_id: string;
|
|
10475
|
+
};
|
|
10476
|
+
query?: never;
|
|
10477
|
+
url: '/whatsapp-numbers/{channel_id}/profile-photo/complete';
|
|
10478
|
+
};
|
|
10479
|
+
export type CompleteProfilePhotoUploadErrors = {
|
|
10480
|
+
/**
|
|
10481
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10482
|
+
*
|
|
10483
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10484
|
+
*/
|
|
10485
|
+
400: Error;
|
|
10486
|
+
/**
|
|
10487
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10488
|
+
*/
|
|
10489
|
+
401: Error;
|
|
10490
|
+
/**
|
|
10491
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10492
|
+
*/
|
|
10493
|
+
403: Error;
|
|
10494
|
+
/**
|
|
10495
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10496
|
+
*/
|
|
10497
|
+
404: Error;
|
|
10498
|
+
/**
|
|
10499
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10500
|
+
*
|
|
10501
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10502
|
+
*/
|
|
10503
|
+
409: Error;
|
|
10504
|
+
/**
|
|
10505
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10506
|
+
*/
|
|
10507
|
+
413: Error;
|
|
10508
|
+
/**
|
|
10509
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10510
|
+
*/
|
|
10511
|
+
415: Error;
|
|
10512
|
+
/**
|
|
10513
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10514
|
+
*/
|
|
10515
|
+
422: Error;
|
|
10516
|
+
/**
|
|
10517
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10518
|
+
*/
|
|
10519
|
+
429: Error;
|
|
10520
|
+
/**
|
|
10521
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10522
|
+
*/
|
|
10523
|
+
500: Error;
|
|
10524
|
+
/**
|
|
10525
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10526
|
+
*/
|
|
10527
|
+
502: Error;
|
|
10528
|
+
/**
|
|
10529
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10530
|
+
*/
|
|
10531
|
+
503: Error;
|
|
10532
|
+
};
|
|
10533
|
+
export type CompleteProfilePhotoUploadError = CompleteProfilePhotoUploadErrors[keyof CompleteProfilePhotoUploadErrors];
|
|
10534
|
+
export type CompleteProfilePhotoUploadResponses = {
|
|
10535
|
+
/**
|
|
10536
|
+
* Success.
|
|
10537
|
+
*/
|
|
10538
|
+
200: {
|
|
10539
|
+
data: WhatsAppNumber;
|
|
10540
|
+
};
|
|
10541
|
+
};
|
|
10542
|
+
export type CompleteProfilePhotoUploadResponse = CompleteProfilePhotoUploadResponses[keyof CompleteProfilePhotoUploadResponses];
|
|
10543
|
+
export type RequestWhatsAppDisplayNameData = {
|
|
10544
|
+
body: RequestDisplayName;
|
|
10545
|
+
headers?: {
|
|
10546
|
+
/**
|
|
10547
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10548
|
+
*/
|
|
10549
|
+
'Idempotency-Key'?: string;
|
|
10550
|
+
};
|
|
10551
|
+
path: {
|
|
10552
|
+
/**
|
|
10553
|
+
* Channel ID.
|
|
10554
|
+
*/
|
|
10555
|
+
channel_id: string;
|
|
10556
|
+
};
|
|
10557
|
+
query?: never;
|
|
10558
|
+
url: '/whatsapp-numbers/{channel_id}/display-name';
|
|
10559
|
+
};
|
|
10560
|
+
export type RequestWhatsAppDisplayNameErrors = {
|
|
10561
|
+
/**
|
|
10562
|
+
* `invalid_json`: The body is not valid JSON.
|
|
10563
|
+
*
|
|
10564
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10565
|
+
*/
|
|
10566
|
+
400: Error;
|
|
10567
|
+
/**
|
|
10568
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10569
|
+
*/
|
|
10570
|
+
401: Error;
|
|
10571
|
+
/**
|
|
10572
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10573
|
+
*/
|
|
10574
|
+
403: Error;
|
|
10575
|
+
/**
|
|
10576
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10577
|
+
*/
|
|
10578
|
+
404: Error;
|
|
10579
|
+
/**
|
|
10580
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10581
|
+
*
|
|
10582
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10583
|
+
*/
|
|
10584
|
+
409: Error;
|
|
10585
|
+
/**
|
|
10586
|
+
* `body_too_large`: The JSON body exceeds 64 KiB.
|
|
10587
|
+
*/
|
|
10588
|
+
413: Error;
|
|
10589
|
+
/**
|
|
10590
|
+
* `unsupported_media_type`: The body must be `application/json`.
|
|
10591
|
+
*/
|
|
10592
|
+
415: Error;
|
|
10593
|
+
/**
|
|
10594
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10595
|
+
*/
|
|
10596
|
+
422: Error;
|
|
10597
|
+
/**
|
|
10598
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10599
|
+
*/
|
|
10600
|
+
429: Error;
|
|
10601
|
+
/**
|
|
10602
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10603
|
+
*/
|
|
10604
|
+
500: Error;
|
|
10605
|
+
/**
|
|
10606
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10607
|
+
*/
|
|
10608
|
+
502: Error;
|
|
10609
|
+
/**
|
|
10610
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10611
|
+
*/
|
|
10612
|
+
503: Error;
|
|
10613
|
+
};
|
|
10614
|
+
export type RequestWhatsAppDisplayNameError = RequestWhatsAppDisplayNameErrors[keyof RequestWhatsAppDisplayNameErrors];
|
|
10615
|
+
export type RequestWhatsAppDisplayNameResponses = {
|
|
10616
|
+
/**
|
|
10617
|
+
* Accepted.
|
|
10618
|
+
*/
|
|
10619
|
+
202: {
|
|
10620
|
+
data: DisplayNameRequest;
|
|
10621
|
+
};
|
|
10622
|
+
};
|
|
10623
|
+
export type RequestWhatsAppDisplayNameResponse = RequestWhatsAppDisplayNameResponses[keyof RequestWhatsAppDisplayNameResponses];
|
|
10624
|
+
export type RefreshWhatsAppNumberData = {
|
|
10625
|
+
body?: never;
|
|
10626
|
+
headers?: {
|
|
10627
|
+
/**
|
|
10628
|
+
* Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as `order-10482-ready`. Retrying with the same key and body replays the first response instead of repeating the write.
|
|
10629
|
+
*/
|
|
10630
|
+
'Idempotency-Key'?: string;
|
|
10631
|
+
};
|
|
10632
|
+
path: {
|
|
10633
|
+
/**
|
|
10634
|
+
* Channel ID.
|
|
10635
|
+
*/
|
|
10636
|
+
channel_id: string;
|
|
10637
|
+
};
|
|
10638
|
+
query?: never;
|
|
10639
|
+
url: '/whatsapp-numbers/{channel_id}/refresh';
|
|
10640
|
+
};
|
|
10641
|
+
export type RefreshWhatsAppNumberErrors = {
|
|
10642
|
+
/**
|
|
10643
|
+
* `invalid_input`: A parameter or body field is invalid; `param` names it when known.
|
|
10644
|
+
*/
|
|
10645
|
+
400: Error;
|
|
10646
|
+
/**
|
|
10647
|
+
* `unauthorized`: The `Authorization` header is missing, malformed, expired or revoked.
|
|
10648
|
+
*/
|
|
10649
|
+
401: Error;
|
|
10650
|
+
/**
|
|
10651
|
+
* `insufficient_scope`: The key lacks the scope this operation requires.
|
|
10652
|
+
*/
|
|
10653
|
+
403: Error;
|
|
10654
|
+
/**
|
|
10655
|
+
* `not_found`: The resource does not exist in this organization.
|
|
10656
|
+
*/
|
|
10657
|
+
404: Error;
|
|
10658
|
+
/**
|
|
10659
|
+
* `idempotency_conflict`: The `Idempotency-Key` was used for a different request.
|
|
10660
|
+
*
|
|
10661
|
+
* `request_processing`: A request with this `Idempotency-Key` is still processing or ended in an unknown state.
|
|
10662
|
+
*/
|
|
10663
|
+
409: Error;
|
|
10664
|
+
/**
|
|
10665
|
+
* `rule_violation`: The request breaks a business rule; `message` says which.
|
|
10666
|
+
*/
|
|
10667
|
+
422: Error;
|
|
10668
|
+
/**
|
|
10669
|
+
* `rate_limited`: More than 120 requests this minute with this key; see `Retry-After`.
|
|
10670
|
+
*/
|
|
10671
|
+
429: Error;
|
|
10672
|
+
/**
|
|
10673
|
+
* `internal_error`: Ricky failed. Retry a read. Before retrying a write, read the resource: the same `Idempotency-Key` answers `request_processing`.
|
|
10674
|
+
*/
|
|
10675
|
+
500: Error;
|
|
10676
|
+
/**
|
|
10677
|
+
* `upstream_error`: The messaging provider failed. Retry later.
|
|
10678
|
+
*/
|
|
10679
|
+
502: Error;
|
|
10680
|
+
/**
|
|
10681
|
+
* `unavailable`: A dependency is temporarily unavailable. Retry later.
|
|
10682
|
+
*/
|
|
10683
|
+
503: Error;
|
|
10684
|
+
};
|
|
10685
|
+
export type RefreshWhatsAppNumberError = RefreshWhatsAppNumberErrors[keyof RefreshWhatsAppNumberErrors];
|
|
10686
|
+
export type RefreshWhatsAppNumberResponses = {
|
|
10687
|
+
/**
|
|
10688
|
+
* Success.
|
|
10689
|
+
*/
|
|
10690
|
+
200: {
|
|
10691
|
+
data: WhatsAppNumber;
|
|
10692
|
+
};
|
|
10693
|
+
};
|
|
10694
|
+
export type RefreshWhatsAppNumberResponse = RefreshWhatsAppNumberResponses[keyof RefreshWhatsAppNumberResponses];
|
|
9564
10695
|
export type ListBroadcastsData = {
|
|
9565
10696
|
body?: never;
|
|
9566
10697
|
path?: never;
|