@sendly/cli 3.37.1 → 3.39.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 +268 -0
- package/dist/commands/business-upgrade/resubmit.js +3 -3
- package/dist/commands/business-upgrade/start.js +3 -3
- package/dist/commands/config/list.js +14 -2
- package/dist/commands/config/set.js +16 -3
- package/dist/commands/countries.js +2 -2
- package/dist/commands/credits/index.d.ts +1 -0
- package/dist/commands/credits/index.js +4 -0
- package/dist/commands/doctor.d.ts +12 -0
- package/dist/commands/doctor.js +51 -8
- package/dist/commands/enterprise/upload-verification-document.js +3 -3
- package/dist/commands/enterprise/verification/resubmit.js +2 -2
- package/dist/commands/enterprise/verification/submit.js +2 -2
- package/dist/commands/events/listen.js +3 -3
- package/dist/commands/numbers/buy.js +19 -4
- package/dist/commands/rcs/agents/create.d.ts +44 -0
- package/dist/commands/rcs/agents/create.js +71 -0
- package/dist/commands/rcs/agents/devices/set.d.ts +16 -0
- package/dist/commands/rcs/agents/devices/set.js +77 -0
- package/dist/commands/rcs/agents/get.d.ts +13 -0
- package/dist/commands/rcs/agents/get.js +51 -0
- package/dist/commands/rcs/agents/request-launch.d.ts +16 -0
- package/dist/commands/rcs/agents/request-launch.js +71 -0
- package/dist/commands/rcs/agents/submit.d.ts +14 -0
- package/dist/commands/rcs/agents/submit.js +56 -0
- package/dist/commands/rcs/agents/update.d.ts +48 -0
- package/dist/commands/rcs/agents/update.js +81 -0
- package/dist/commands/rcs/agents.d.ts +10 -0
- package/dist/commands/rcs/agents.js +97 -0
- package/dist/commands/rcs/brands/create.d.ts +30 -0
- package/dist/commands/rcs/brands/create.js +55 -0
- package/dist/commands/rcs/brands/update.d.ts +33 -0
- package/dist/commands/rcs/brands/update.js +62 -0
- package/dist/commands/rcs/capability.d.ts +12 -0
- package/dist/commands/rcs/capability.js +85 -0
- package/dist/commands/rcs/dossier.d.ts +10 -0
- package/dist/commands/rcs/dossier.js +73 -0
- package/dist/commands/rcs/registration.d.ts +10 -0
- package/dist/commands/rcs/registration.js +59 -0
- package/dist/commands/rcs/send.d.ts +21 -0
- package/dist/commands/rcs/send.js +240 -0
- package/dist/commands/send.d.ts +1 -0
- package/dist/commands/send.js +5 -2
- package/dist/commands/sms/batch.d.ts +1 -0
- package/dist/commands/sms/batch.js +11 -1
- package/dist/commands/sms/group.d.ts +1 -0
- package/dist/commands/sms/group.js +5 -2
- package/dist/commands/sms/schedule.d.ts +1 -0
- package/dist/commands/sms/schedule.js +5 -2
- package/dist/commands/sms/send.d.ts +1 -0
- package/dist/commands/sms/send.js +5 -2
- package/dist/commands/whatsapp/connect.d.ts +17 -0
- package/dist/commands/whatsapp/connect.js +166 -0
- package/dist/commands/whatsapp/profile/get.d.ts +13 -0
- package/dist/commands/whatsapp/profile/get.js +67 -0
- package/dist/commands/whatsapp/profile/update.d.ts +20 -0
- package/dist/commands/whatsapp/profile/update.js +109 -0
- package/dist/commands/whatsapp/send.d.ts +17 -0
- package/dist/commands/whatsapp/send.js +151 -0
- package/dist/commands/whatsapp/senders.d.ts +10 -0
- package/dist/commands/whatsapp/senders.js +74 -0
- package/dist/commands/whatsapp/status.d.ts +13 -0
- package/dist/commands/whatsapp/status.js +92 -0
- package/dist/commands/whatsapp/templates/create.d.ts +19 -0
- package/dist/commands/whatsapp/templates/create.js +205 -0
- package/dist/commands/whatsapp/templates/delete.d.ts +14 -0
- package/dist/commands/whatsapp/templates/delete.js +69 -0
- package/dist/commands/whatsapp/templates/list.d.ts +10 -0
- package/dist/commands/whatsapp/templates/list.js +77 -0
- package/dist/commands/whatsapp/templates/update.d.ts +18 -0
- package/dist/commands/whatsapp/templates/update.js +160 -0
- package/dist/commands/whoami.js +32 -6
- package/dist/hooks/command-not-found.js +46 -61
- package/dist/lib/api-client.d.ts +20 -3
- package/dist/lib/api-client.js +96 -17
- package/dist/lib/auth.js +10 -6
- package/dist/lib/base-command.js +13 -2
- package/dist/lib/config.d.ts +50 -1
- package/dist/lib/config.js +144 -7
- package/dist/lib/help.d.ts +10 -0
- package/dist/lib/help.js +23 -0
- package/dist/lib/onboarding.js +3 -3
- package/dist/lib/rcs-registration.d.ts +231 -0
- package/dist/lib/rcs-registration.js +734 -0
- package/oclif.manifest.json +2603 -350
- package/package.json +17 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RCS registration helpers
|
|
3
|
+
* Shapes, flag sets, body builders and output shared by the `sendly rcs`
|
|
4
|
+
* registration commands (registration, dossier, brands, agents)
|
|
5
|
+
*/
|
|
6
|
+
export type CustomerStage = "draft" | "in_review" | "changes_requested" | "rejected" | "brand_verification" | "agent_review" | "testing" | "launch_review" | "launching" | "launch_rejected" | "live" | "suspended" | "failed";
|
|
7
|
+
export interface PublicRcsBrand {
|
|
8
|
+
id: string;
|
|
9
|
+
reviewStatus: string;
|
|
10
|
+
customerStage: CustomerStage;
|
|
11
|
+
displayName: string;
|
|
12
|
+
legalName: string;
|
|
13
|
+
legalEntityType: string;
|
|
14
|
+
organizationType: string;
|
|
15
|
+
stockSymbol: string | null;
|
|
16
|
+
websiteUrl: string;
|
|
17
|
+
ein: string;
|
|
18
|
+
address: {
|
|
19
|
+
line1: string;
|
|
20
|
+
line2: string | null;
|
|
21
|
+
city: string;
|
|
22
|
+
state: string;
|
|
23
|
+
postalCode: string;
|
|
24
|
+
countryCode: string;
|
|
25
|
+
};
|
|
26
|
+
contact: {
|
|
27
|
+
firstName: string;
|
|
28
|
+
lastName: string;
|
|
29
|
+
title: string | null;
|
|
30
|
+
email: string;
|
|
31
|
+
phoneNumber: string;
|
|
32
|
+
};
|
|
33
|
+
reviewNote: string | null;
|
|
34
|
+
rejectionReason: string | null;
|
|
35
|
+
submittedForReviewAt: string | null;
|
|
36
|
+
sentToCarrierAt: string | null;
|
|
37
|
+
verifiedAt: string | null;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
}
|
|
41
|
+
export interface PublicRcsTestDevice {
|
|
42
|
+
id: string;
|
|
43
|
+
phoneNumber: string;
|
|
44
|
+
label: string | null;
|
|
45
|
+
inviteStatus: string | null;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
}
|
|
48
|
+
export interface RcsAgentBasics {
|
|
49
|
+
displayName?: string | null;
|
|
50
|
+
useCase?: string | null;
|
|
51
|
+
hostingRegion?: string | null;
|
|
52
|
+
description?: string | null;
|
|
53
|
+
logoUrl?: string | null;
|
|
54
|
+
heroUrl?: string | null;
|
|
55
|
+
brandColor?: string | null;
|
|
56
|
+
privacyPolicyUrl?: string | null;
|
|
57
|
+
termsAndConditionsUrl?: string | null;
|
|
58
|
+
phoneNumber?: {
|
|
59
|
+
number?: string | null;
|
|
60
|
+
label?: string | null;
|
|
61
|
+
} | null;
|
|
62
|
+
website?: {
|
|
63
|
+
url?: string | null;
|
|
64
|
+
label?: string | null;
|
|
65
|
+
} | null;
|
|
66
|
+
email?: {
|
|
67
|
+
address?: string | null;
|
|
68
|
+
label?: string | null;
|
|
69
|
+
} | null;
|
|
70
|
+
}
|
|
71
|
+
export interface RcsCampaign {
|
|
72
|
+
companyOverview?: string | null;
|
|
73
|
+
agentOverview?: string | null;
|
|
74
|
+
interactions?: Array<{
|
|
75
|
+
interactionType?: string | null;
|
|
76
|
+
description?: string | null;
|
|
77
|
+
} | null> | null;
|
|
78
|
+
messageExamples?: Array<string | null> | null;
|
|
79
|
+
consentSettings?: {
|
|
80
|
+
optInMethods?: Array<{
|
|
81
|
+
methodType?: string | null;
|
|
82
|
+
description?: string | null;
|
|
83
|
+
} | null> | null;
|
|
84
|
+
callToAction?: string | null;
|
|
85
|
+
callToActionUrl?: string | null;
|
|
86
|
+
callToActionMediaUrl?: string | null;
|
|
87
|
+
doubleOptIn?: boolean | null;
|
|
88
|
+
doubleOptInMessage?: string | null;
|
|
89
|
+
optInMessage?: string | null;
|
|
90
|
+
helpResponse?: string | null;
|
|
91
|
+
optOutResponse?: string | null;
|
|
92
|
+
} | null;
|
|
93
|
+
additionalInformation?: string | null;
|
|
94
|
+
}
|
|
95
|
+
export interface RcsTesting {
|
|
96
|
+
testUrl?: string | null;
|
|
97
|
+
messageId?: string | null;
|
|
98
|
+
additionalInformation?: string | null;
|
|
99
|
+
}
|
|
100
|
+
export interface PublicRcsAgent {
|
|
101
|
+
id: string;
|
|
102
|
+
brandId: string | null;
|
|
103
|
+
status: string;
|
|
104
|
+
reviewStatus: string;
|
|
105
|
+
customerStage: CustomerStage;
|
|
106
|
+
displayName: string;
|
|
107
|
+
useCase: string | null;
|
|
108
|
+
hostingRegion: string | null;
|
|
109
|
+
basics: RcsAgentBasics;
|
|
110
|
+
campaign: RcsCampaign | null;
|
|
111
|
+
testing: RcsTesting | null;
|
|
112
|
+
reviewNote: string | null;
|
|
113
|
+
rejectionReason: string | null;
|
|
114
|
+
testDevices: PublicRcsTestDevice[];
|
|
115
|
+
submittedForReviewAt: string | null;
|
|
116
|
+
basicsSubmittedAt: string | null;
|
|
117
|
+
launchSubmittedAt: string | null;
|
|
118
|
+
liveAt: string | null;
|
|
119
|
+
createdAt: string;
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
}
|
|
122
|
+
export interface RegistrationResponse {
|
|
123
|
+
brand: PublicRcsBrand | null;
|
|
124
|
+
agent: PublicRcsAgent | null;
|
|
125
|
+
devices: PublicRcsTestDevice[];
|
|
126
|
+
stage: CustomerStage;
|
|
127
|
+
usEligible: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface DossierResponse {
|
|
130
|
+
brand: Record<string, unknown>;
|
|
131
|
+
usEligible: boolean;
|
|
132
|
+
source: "tendlc" | "verification" | "none";
|
|
133
|
+
}
|
|
134
|
+
export type Dict = Record<string, unknown>;
|
|
135
|
+
export declare const LEGAL_ENTITY_TYPES: readonly ["LIMITED_LIABILITY_COMPANY", "CORPORATION", "S_CORPORATION", "PARTNERSHIP", "SOLE_PROPRIETORSHIP"];
|
|
136
|
+
export declare const ORGANIZATION_TYPES: readonly ["PRIVATE_PROFIT", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT", "UNKNOWN"];
|
|
137
|
+
export declare const AGENT_USE_CASES: readonly ["MULTI_USE", "TRANSACTIONAL", "PROMOTIONAL", "OTP"];
|
|
138
|
+
export declare const INTERACTION_TYPES: readonly ["TRANSACTIONAL_UPDATES", "CUSTOMER_SUPPORT", "ACCOUNT_ALERTS", "LOYALTY_OR_REWARD", "MARKETING_OR_PROMOTIONAL", "TWO_WAY_CONVERSATION", "OTHER"];
|
|
139
|
+
export declare const OPT_IN_METHOD_TYPES: readonly ["WEBSITE", "SMS", "MOBILE_APP", "QR_CODE", "SALE_POINT", "OTHER"];
|
|
140
|
+
export declare const STAGE_LABELS: Record<CustomerStage, string>;
|
|
141
|
+
export declare const EARLY_ACCESS_HINT = "RCS is rolling out gradually \u2014 contact support@sendly.live for early access.";
|
|
142
|
+
export declare const idempotencyKeyFlag: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
143
|
+
export declare const BRAND_FLAGS: {
|
|
144
|
+
"display-name": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
145
|
+
"legal-name": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
146
|
+
"legal-entity-type": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
147
|
+
"organization-type": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
148
|
+
website: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
149
|
+
ein: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
150
|
+
"stock-symbol": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
151
|
+
"address-line1": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
152
|
+
"address-line2": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
153
|
+
city: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
154
|
+
state: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
155
|
+
"postal-code": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
156
|
+
country: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
157
|
+
"contact-first-name": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
158
|
+
"contact-last-name": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
159
|
+
"contact-title": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
160
|
+
"contact-email": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
161
|
+
"contact-phone": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
162
|
+
};
|
|
163
|
+
export declare const BRAND_FIELD_PATHS: Record<string, string[]>;
|
|
164
|
+
export declare const AGENT_BASICS_FLAGS: {
|
|
165
|
+
"display-name": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
166
|
+
"use-case": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
167
|
+
description: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
168
|
+
"logo-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
169
|
+
"hero-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
170
|
+
"brand-color": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
171
|
+
"privacy-policy-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
172
|
+
"terms-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
173
|
+
phone: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
174
|
+
"phone-label": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
175
|
+
website: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
176
|
+
"website-label": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
177
|
+
email: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
178
|
+
"email-label": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
179
|
+
};
|
|
180
|
+
export declare const AGENT_BASICS_PATHS: Record<string, string[]>;
|
|
181
|
+
export declare const AGENT_CAMPAIGN_FLAGS: {
|
|
182
|
+
"company-overview": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
183
|
+
"agent-overview": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
184
|
+
"campaign-info": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
185
|
+
interaction: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
186
|
+
"message-example": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
187
|
+
"opt-in-method": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
188
|
+
"call-to-action": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
189
|
+
"call-to-action-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
190
|
+
"call-to-action-media-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
191
|
+
"double-opt-in": import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
192
|
+
"double-opt-in-message": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
193
|
+
"opt-in-message": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
194
|
+
"help-response": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
195
|
+
"opt-out-response": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
196
|
+
};
|
|
197
|
+
export declare const AGENT_CAMPAIGN_PATHS: Record<string, string[]>;
|
|
198
|
+
export declare const AGENT_TESTING_FLAGS: {
|
|
199
|
+
"test-url": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
200
|
+
"test-message-id": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
201
|
+
"testing-info": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
202
|
+
};
|
|
203
|
+
export declare const AGENT_TESTING_PATHS: Record<string, string[]>;
|
|
204
|
+
export declare function isDict(value: unknown): value is Dict;
|
|
205
|
+
export declare function setPath(target: Dict, path: string[], value: unknown): void;
|
|
206
|
+
export declare function getPath(source: Dict, path: string[]): unknown;
|
|
207
|
+
export declare function readJsonBody(filePath: string): Dict;
|
|
208
|
+
export interface BuildOptions {
|
|
209
|
+
clearEmpty: boolean;
|
|
210
|
+
}
|
|
211
|
+
export declare function buildBrandBody(flags: Dict, options: BuildOptions): Dict;
|
|
212
|
+
export declare function parseTypedList(raw: string[] | undefined, typeKey: string, allowed: readonly string[], flagName: string): Array<Record<string, string>> | string;
|
|
213
|
+
export declare function buildAgentBody(flags: Dict, options: BuildOptions): Dict | string;
|
|
214
|
+
export declare function parseDeviceFlags(raw: string[] | undefined): Array<{
|
|
215
|
+
phoneNumber: string;
|
|
216
|
+
label?: string;
|
|
217
|
+
}> | string;
|
|
218
|
+
export declare function stageLabel(stage: string): string;
|
|
219
|
+
export declare function formatStage(stage: string): string;
|
|
220
|
+
export declare function formatReviewStatus(status: string): string;
|
|
221
|
+
export declare function formatSendStatus(status: string): string;
|
|
222
|
+
export declare function nextStepFor(stage: string, ids: {
|
|
223
|
+
brandId?: string | null;
|
|
224
|
+
agentId?: string | null;
|
|
225
|
+
}): string[];
|
|
226
|
+
export declare function printNextSteps(lines: string[]): void;
|
|
227
|
+
export declare function printBrand(brand: PublicRcsBrand): void;
|
|
228
|
+
export declare function printAgent(agent: PublicRcsAgent): void;
|
|
229
|
+
export declare function formatInviteStatus(status: string | null): string;
|
|
230
|
+
export declare function printDevices(devices: PublicRcsTestDevice[]): void;
|
|
231
|
+
export declare function reportRcsError(err: unknown): boolean;
|