@naturalpay/sdk 0.4.0 → 0.5.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +7 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -12
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -12
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +17 -17
  11. package/internal/utils/query.d.mts +3 -0
  12. package/internal/utils/query.d.mts.map +1 -1
  13. package/internal/utils/query.d.ts +3 -0
  14. package/internal/utils/query.d.ts.map +1 -1
  15. package/internal/utils/query.js +16 -3
  16. package/internal/utils/query.js.map +1 -1
  17. package/internal/utils/query.mjs +16 -2
  18. package/internal/utils/query.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/resources/agents.d.mts +554 -268
  21. package/resources/agents.d.mts.map +1 -1
  22. package/resources/agents.d.ts +554 -268
  23. package/resources/agents.d.ts.map +1 -1
  24. package/resources/agents.js +72 -20
  25. package/resources/agents.js.map +1 -1
  26. package/resources/agents.mjs +72 -20
  27. package/resources/agents.mjs.map +1 -1
  28. package/resources/customers.d.mts +243 -114
  29. package/resources/customers.d.mts.map +1 -1
  30. package/resources/customers.d.ts +243 -114
  31. package/resources/customers.d.ts.map +1 -1
  32. package/resources/customers.js +6 -7
  33. package/resources/customers.js.map +1 -1
  34. package/resources/customers.mjs +6 -7
  35. package/resources/customers.mjs.map +1 -1
  36. package/resources/index.d.mts +2 -4
  37. package/resources/index.d.mts.map +1 -1
  38. package/resources/index.d.ts +2 -4
  39. package/resources/index.d.ts.map +1 -1
  40. package/resources/index.js +1 -5
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs +0 -2
  43. package/resources/index.mjs.map +1 -1
  44. package/src/client.ts +23 -60
  45. package/src/internal/utils/query.ts +18 -2
  46. package/src/resources/agents.ts +676 -300
  47. package/src/resources/customers.ts +273 -132
  48. package/src/resources/index.ts +10 -24
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
  54. package/internal/qs/formats.d.mts +0 -7
  55. package/internal/qs/formats.d.mts.map +0 -1
  56. package/internal/qs/formats.d.ts +0 -7
  57. package/internal/qs/formats.d.ts.map +0 -1
  58. package/internal/qs/formats.js +0 -13
  59. package/internal/qs/formats.js.map +0 -1
  60. package/internal/qs/formats.mjs +0 -9
  61. package/internal/qs/formats.mjs.map +0 -1
  62. package/internal/qs/index.d.mts +0 -10
  63. package/internal/qs/index.d.mts.map +0 -1
  64. package/internal/qs/index.d.ts +0 -10
  65. package/internal/qs/index.d.ts.map +0 -1
  66. package/internal/qs/index.js +0 -14
  67. package/internal/qs/index.js.map +0 -1
  68. package/internal/qs/index.mjs +0 -10
  69. package/internal/qs/index.mjs.map +0 -1
  70. package/internal/qs/stringify.d.mts +0 -3
  71. package/internal/qs/stringify.d.mts.map +0 -1
  72. package/internal/qs/stringify.d.ts +0 -3
  73. package/internal/qs/stringify.d.ts.map +0 -1
  74. package/internal/qs/stringify.js +0 -277
  75. package/internal/qs/stringify.js.map +0 -1
  76. package/internal/qs/stringify.mjs +0 -274
  77. package/internal/qs/stringify.mjs.map +0 -1
  78. package/internal/qs/types.d.mts +0 -57
  79. package/internal/qs/types.d.mts.map +0 -1
  80. package/internal/qs/types.d.ts +0 -57
  81. package/internal/qs/types.d.ts.map +0 -1
  82. package/internal/qs/types.js +0 -3
  83. package/internal/qs/types.js.map +0 -1
  84. package/internal/qs/types.mjs +0 -2
  85. package/internal/qs/types.mjs.map +0 -1
  86. package/internal/qs/utils.d.mts +0 -15
  87. package/internal/qs/utils.d.mts.map +0 -1
  88. package/internal/qs/utils.d.ts +0 -15
  89. package/internal/qs/utils.d.ts.map +0 -1
  90. package/internal/qs/utils.js +0 -230
  91. package/internal/qs/utils.js.map +0 -1
  92. package/internal/qs/utils.mjs +0 -217
  93. package/internal/qs/utils.mjs.map +0 -1
  94. package/resources/delegations.d.mts +0 -458
  95. package/resources/delegations.d.mts.map +0 -1
  96. package/resources/delegations.d.ts +0 -458
  97. package/resources/delegations.d.ts.map +0 -1
  98. package/resources/delegations.js +0 -47
  99. package/resources/delegations.js.map +0 -1
  100. package/resources/delegations.mjs +0 -43
  101. package/resources/delegations.mjs.map +0 -1
  102. package/resources/escalations.d.mts +0 -1124
  103. package/resources/escalations.d.mts.map +0 -1
  104. package/resources/escalations.d.ts +0 -1124
  105. package/resources/escalations.d.ts.map +0 -1
  106. package/resources/escalations.js +0 -110
  107. package/resources/escalations.js.map +0 -1
  108. package/resources/escalations.mjs +0 -106
  109. package/resources/escalations.mjs.map +0 -1
  110. package/src/internal/qs/LICENSE.md +0 -13
  111. package/src/internal/qs/README.md +0 -3
  112. package/src/internal/qs/formats.ts +0 -10
  113. package/src/internal/qs/index.ts +0 -13
  114. package/src/internal/qs/stringify.ts +0 -385
  115. package/src/internal/qs/types.ts +0 -71
  116. package/src/internal/qs/utils.ts +0 -265
  117. package/src/resources/delegations.ts +0 -580
  118. package/src/resources/escalations.ts +0 -1422
@@ -4,13 +4,14 @@ import { APIResource } from '../core/resource';
4
4
  import { APIPromise } from '../core/api-promise';
5
5
  import { buildHeaders } from '../internal/headers';
6
6
  import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
7
8
 
8
9
  /**
9
10
  * Customer management
10
11
  */
11
12
  export class Customers extends APIResource {
12
13
  /**
13
- * List active customers you can operate on behalf of.
14
+ * List all customer relationships across the current developer party's agents.
14
15
  */
15
16
  list(
16
17
  params: CustomerListParams | null | undefined = {},
@@ -31,16 +32,15 @@ export class Customers extends APIResource {
31
32
  }
32
33
 
33
34
  /**
34
- * List the pending customer invitations you've sent agent invitations grouped by
35
- * recipient.
35
+ * Get a specific customer relationship visible to the current developer party.
36
36
  */
37
- listInvitations(
38
- params: CustomerListInvitationsParams | null | undefined = {},
37
+ get(
38
+ customerID: string,
39
+ params: CustomerGetParams | null | undefined = {},
39
40
  options?: RequestOptions,
40
- ): APIPromise<CustomerListInvitationsResponse> {
41
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
42
- return this._client.get('/customers/invitations', {
43
- query,
41
+ ): APIPromise<CustomerGetResponse> {
42
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
43
+ return this._client.get(path`/customers/${customerID}`, {
44
44
  ...options,
45
45
  headers: buildHeaders([
46
46
  {
@@ -74,6 +74,11 @@ export namespace CustomerListResponse {
74
74
  */
75
75
  attributes: Data.Attributes;
76
76
 
77
+ /**
78
+ * Resource relationships
79
+ */
80
+ relationships: Data.Relationships;
81
+
77
82
  /**
78
83
  * Resource type
79
84
  */
@@ -86,62 +91,160 @@ export namespace CustomerListResponse {
86
91
  */
87
92
  export interface Attributes {
88
93
  /**
89
- * When the delegation was created
94
+ * When the customer party was created
90
95
  */
91
- createdAt: string;
96
+ createdAt: string | null;
92
97
 
93
98
  /**
94
- * Customer email, if known
99
+ * Primary email
95
100
  */
96
101
  email: string | null;
97
102
 
98
103
  /**
99
- * Party info
104
+ * Display name, falling back to legal name when display name is unset
100
105
  */
101
- party: Attributes.Party;
106
+ name: string;
107
+ }
102
108
 
109
+ /**
110
+ * Resource relationships
111
+ */
112
+ export interface Relationships {
103
113
  /**
104
- * Granted permissions
114
+ * Per-agent access for this customer relationship
105
115
  */
106
- permissions: Array<string>;
116
+ agents: Relationships.Agents;
107
117
 
108
118
  /**
109
- * Status (ACTIVE, etc.)
119
+ * Delegation state for this customer relationship
110
120
  */
111
- status: string;
121
+ delegation: Relationships.Delegation;
122
+ }
112
123
 
124
+ export namespace Relationships {
113
125
  /**
114
- * Why walletAvailableMinor may be null: "granted" balance is fresh; "denied"
115
- * caller lacks wallets.read; "noWallet" party has not provisioned a wallet.
126
+ * Per-agent access for this customer relationship
116
127
  */
117
- walletAccess: 'granted' | 'denied' | 'noWallet';
128
+ export interface Agents {
129
+ /**
130
+ * Agents attached to this customer relationship
131
+ */
132
+ data: Array<Agents.Data>;
133
+ }
118
134
 
119
- /**
120
- * Available wallet balance in cents. Null when access is denied or no wallet
121
- * exists see walletAccess.
122
- */
123
- walletAvailableMinor: number | null;
124
- }
135
+ export namespace Agents {
136
+ /**
137
+ * Embedded agent access details
138
+ */
139
+ export interface Data {
140
+ /**
141
+ * Agent handle (agt_xxx)
142
+ */
143
+ id: string;
144
+
145
+ /**
146
+ * Agent access attributes
147
+ */
148
+ attributes: Data.Attributes;
149
+
150
+ /**
151
+ * Resource type
152
+ */
153
+ type: string;
154
+ }
155
+
156
+ export namespace Data {
157
+ /**
158
+ * Agent access attributes
159
+ */
160
+ export interface Attributes {
161
+ /**
162
+ * Per-agent limits for this customer relationship
163
+ */
164
+ limits: Attributes.Limits | null;
165
+
166
+ /**
167
+ * Agent display name
168
+ */
169
+ name: string | null;
170
+
171
+ /**
172
+ * Permissions this agent has for the customer
173
+ */
174
+ permissions: Array<string>;
175
+
176
+ /**
177
+ * Agent-customer relationship status
178
+ */
179
+ status: string;
180
+ }
181
+
182
+ export namespace Attributes {
183
+ /**
184
+ * Per-agent limits for this customer relationship
185
+ */
186
+ export interface Limits {
187
+ /**
188
+ * Positive per-transaction limit in cents. null means no per-payment limit.
189
+ */
190
+ perTransaction?: number | null;
191
+ }
192
+ }
193
+ }
194
+ }
125
195
 
126
- export namespace Attributes {
127
196
  /**
128
- * Party info
197
+ * Delegation state for this customer relationship
129
198
  */
130
- export interface Party {
199
+ export interface Delegation {
131
200
  /**
132
- * Party handle (pty_xxx)
201
+ * Embedded customer delegation details
133
202
  */
134
- id: string;
203
+ data: Delegation.Data;
204
+ }
135
205
 
206
+ export namespace Delegation {
136
207
  /**
137
- * Primary email
208
+ * Embedded customer delegation details
138
209
  */
139
- email: string | null;
210
+ export interface Data {
211
+ /**
212
+ * Delegation handle (dlg_xxx)
213
+ */
214
+ id: string;
140
215
 
141
- /**
142
- * Display name, falling back to legal name when display name is unset
143
- */
144
- name: string;
216
+ /**
217
+ * Delegation attributes
218
+ */
219
+ attributes: Data.Attributes;
220
+
221
+ /**
222
+ * Resource type
223
+ */
224
+ type: string;
225
+ }
226
+
227
+ export namespace Data {
228
+ /**
229
+ * Delegation attributes
230
+ */
231
+ export interface Attributes {
232
+ /**
233
+ * When the customer relationship was created
234
+ */
235
+ createdAt: string;
236
+
237
+ /**
238
+ * Permissions available across this customer
239
+ */
240
+ permissions: Array<string>;
241
+
242
+ /**
243
+ * Customer relationship status
244
+ */
245
+ status: string;
246
+ }
247
+ }
145
248
  }
146
249
  }
147
250
  }
@@ -159,21 +262,20 @@ export namespace CustomerListResponse {
159
262
  }
160
263
  }
161
264
 
162
- export interface CustomerListInvitationsResponse {
163
- data: Array<CustomerListInvitationsResponse.Data>;
164
-
165
- meta: CustomerListInvitationsResponse.Meta;
265
+ export interface CustomerGetResponse {
266
+ /**
267
+ * Customer resource for an active customer (type='customer', id=pty_xxx).
268
+ */
269
+ data: CustomerGetResponse.Data;
166
270
  }
167
271
 
168
- export namespace CustomerListInvitationsResponse {
272
+ export namespace CustomerGetResponse {
169
273
  /**
170
- * A pending customer invitation (type='customerInvitation', id=recipient email)
171
- * a grouping of agent invitations sent to one recipient.
274
+ * Customer resource for an active customer (type='customer', id=pty_xxx).
172
275
  */
173
276
  export interface Data {
174
277
  /**
175
- * Recipient email the grouping key for the pending invitation. Stays the id even
176
- * after the recipient creates an account.
278
+ * Customer party handle (pty_xxx)
177
279
  */
178
280
  id: string;
179
281
 
@@ -182,6 +284,11 @@ export namespace CustomerListInvitationsResponse {
182
284
  */
183
285
  attributes: Data.Attributes;
184
286
 
287
+ /**
288
+ * Resource relationships
289
+ */
290
+ relationships: Data.Relationships;
291
+
185
292
  /**
186
293
  * Resource type
187
294
  */
@@ -194,117 +301,161 @@ export namespace CustomerListInvitationsResponse {
194
301
  */
195
302
  export interface Attributes {
196
303
  /**
197
- * Pending agent delegation invitations sent to this recipient
304
+ * When the customer party was created
198
305
  */
199
- agentInvitations: Array<Attributes.AgentInvitation>;
306
+ createdAt: string | null;
200
307
 
201
308
  /**
202
- * When the earliest agent invitation was created
309
+ * Primary email
203
310
  */
204
- createdAt: string;
205
-
206
- /**
207
- * Recipient email — the grouping key
208
- */
209
- email: string;
311
+ email: string | null;
210
312
 
211
313
  /**
212
- * Party info (null until the recipient creates an account)
314
+ * Display name, falling back to legal name when display name is unset
213
315
  */
214
- party: Attributes.Party | null;
316
+ name: string;
317
+ }
215
318
 
319
+ /**
320
+ * Resource relationships
321
+ */
322
+ export interface Relationships {
216
323
  /**
217
- * Status (always PENDING)
324
+ * Per-agent access for this customer relationship
218
325
  */
219
- status: string;
326
+ agents: Relationships.Agents;
220
327
 
221
328
  /**
222
- * Always 'denied' for pending customers
329
+ * Delegation state for this customer relationship
223
330
  */
224
- walletAccess: 'granted' | 'denied' | 'noWallet';
331
+ delegation: Relationships.Delegation;
332
+ }
225
333
 
334
+ export namespace Relationships {
226
335
  /**
227
- * Always null for pending customers
336
+ * Per-agent access for this customer relationship
228
337
  */
229
- walletAvailableMinor: number | null;
230
- }
231
-
232
- export namespace Attributes {
233
- export interface AgentInvitation {
234
- /**
235
- * Agent the invitation targets
236
- */
237
- agent: AgentInvitation.Agent;
238
-
239
- /**
240
- * When the agent invitation was created
241
- */
242
- createdAt: string;
243
-
244
- /**
245
- * When the agent invitation expires (null if it does not expire)
246
- */
247
- expiresAt: string | null;
248
-
249
- /**
250
- * Agent delegation invitation handle (adi_xxx)
251
- */
252
- invitationId: string;
253
-
338
+ export interface Agents {
254
339
  /**
255
- * Permissions the invitation requests
340
+ * Agents attached to this customer relationship
256
341
  */
257
- permissions: Array<string>;
342
+ data: Array<Agents.Data>;
258
343
  }
259
344
 
260
- export namespace AgentInvitation {
345
+ export namespace Agents {
261
346
  /**
262
- * Agent the invitation targets
347
+ * Embedded agent access details
263
348
  */
264
- export interface Agent {
349
+ export interface Data {
265
350
  /**
266
351
  * Agent handle (agt_xxx)
267
352
  */
268
353
  id: string;
269
354
 
270
355
  /**
271
- * Agent display name
356
+ * Agent access attributes
357
+ */
358
+ attributes: Data.Attributes;
359
+
360
+ /**
361
+ * Resource type
362
+ */
363
+ type: string;
364
+ }
365
+
366
+ export namespace Data {
367
+ /**
368
+ * Agent access attributes
272
369
  */
273
- name: string | null;
370
+ export interface Attributes {
371
+ /**
372
+ * Per-agent limits for this customer relationship
373
+ */
374
+ limits: Attributes.Limits | null;
375
+
376
+ /**
377
+ * Agent display name
378
+ */
379
+ name: string | null;
380
+
381
+ /**
382
+ * Permissions this agent has for the customer
383
+ */
384
+ permissions: Array<string>;
385
+
386
+ /**
387
+ * Agent-customer relationship status
388
+ */
389
+ status: string;
390
+ }
391
+
392
+ export namespace Attributes {
393
+ /**
394
+ * Per-agent limits for this customer relationship
395
+ */
396
+ export interface Limits {
397
+ /**
398
+ * Positive per-transaction limit in cents. null means no per-payment limit.
399
+ */
400
+ perTransaction?: number | null;
401
+ }
402
+ }
274
403
  }
275
404
  }
276
405
 
277
406
  /**
278
- * Party info (null until the recipient creates an account)
407
+ * Delegation state for this customer relationship
279
408
  */
280
- export interface Party {
409
+ export interface Delegation {
281
410
  /**
282
- * Party handle (pty_xxx)
411
+ * Embedded customer delegation details
283
412
  */
284
- id: string;
285
-
286
- /**
287
- * Primary email
288
- */
289
- email: string | null;
413
+ data: Delegation.Data;
414
+ }
290
415
 
416
+ export namespace Delegation {
291
417
  /**
292
- * Display name, falling back to legal name when display name is unset
418
+ * Embedded customer delegation details
293
419
  */
294
- name: string;
295
- }
296
- }
297
- }
420
+ export interface Data {
421
+ /**
422
+ * Delegation handle (dlg_xxx)
423
+ */
424
+ id: string;
298
425
 
299
- export interface Meta {
300
- pagination: Meta.Pagination;
301
- }
426
+ /**
427
+ * Delegation attributes
428
+ */
429
+ attributes: Data.Attributes;
302
430
 
303
- export namespace Meta {
304
- export interface Pagination {
305
- hasMore: boolean;
431
+ /**
432
+ * Resource type
433
+ */
434
+ type: string;
435
+ }
306
436
 
307
- nextCursor: string | null;
437
+ export namespace Data {
438
+ /**
439
+ * Delegation attributes
440
+ */
441
+ export interface Attributes {
442
+ /**
443
+ * When the customer relationship was created
444
+ */
445
+ createdAt: string;
446
+
447
+ /**
448
+ * Permissions available across this customer
449
+ */
450
+ permissions: Array<string>;
451
+
452
+ /**
453
+ * Customer relationship status
454
+ */
455
+ status: string;
456
+ }
457
+ }
458
+ }
308
459
  }
309
460
  }
310
461
  }
@@ -332,25 +483,15 @@ export interface CustomerListParams {
332
483
  'X-Instance-ID'?: string;
333
484
  }
334
485
 
335
- export interface CustomerListInvitationsParams {
336
- /**
337
- * Query param: Cursor for pagination
338
- */
339
- cursor?: string;
340
-
486
+ export interface CustomerGetParams {
341
487
  /**
342
- * Query param: Maximum number of results
343
- */
344
- limit?: number;
345
-
346
- /**
347
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
488
+ * Agent ID (agt_xxx) identifying which agent is making the request.
348
489
  */
349
490
  'X-Agent-ID'?: string;
350
491
 
351
492
  /**
352
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
353
- * for agent observability.
493
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
494
+ * observability.
354
495
  */
355
496
  'X-Instance-ID'?: string;
356
497
  }
@@ -358,8 +499,8 @@ export interface CustomerListInvitationsParams {
358
499
  export declare namespace Customers {
359
500
  export {
360
501
  type CustomerListResponse as CustomerListResponse,
361
- type CustomerListInvitationsResponse as CustomerListInvitationsResponse,
502
+ type CustomerGetResponse as CustomerGetResponse,
362
503
  type CustomerListParams as CustomerListParams,
363
- type CustomerListInvitationsParams as CustomerListInvitationsParams,
504
+ type CustomerGetParams as CustomerGetParams,
364
505
  };
365
506
  }
@@ -16,44 +16,30 @@ export {
16
16
  type AgentCreateResponse,
17
17
  type AgentUpdateResponse,
18
18
  type AgentListResponse,
19
- type AgentCreateInvitationsResponse,
19
+ type AgentCreateCustomerResponse,
20
20
  type AgentGetResponse,
21
- type AgentListInvitationsForDeveloperResponse,
21
+ type AgentGetCustomerResponse,
22
+ type AgentListCustomersResponse,
22
23
  type AgentRemoveResponse,
24
+ type AgentRemoveCustomerResponse,
23
25
  type AgentCreateParams,
24
26
  type AgentUpdateParams,
25
27
  type AgentListParams,
26
- type AgentCreateInvitationsParams,
28
+ type AgentCreateCustomerParams,
27
29
  type AgentGetParams,
28
- type AgentListInvitationsForDeveloperParams,
30
+ type AgentGetCustomerParams,
31
+ type AgentListCustomersParams,
29
32
  type AgentRemoveParams,
33
+ type AgentRemoveCustomerParams,
30
34
  } from './agents';
31
35
  export { Counterparties, type CounterpartyListResponse, type CounterpartyListParams } from './counterparties';
32
36
  export {
33
37
  Customers,
34
38
  type CustomerListResponse,
35
- type CustomerListInvitationsResponse,
39
+ type CustomerGetResponse,
36
40
  type CustomerListParams,
37
- type CustomerListInvitationsParams,
41
+ type CustomerGetParams,
38
42
  } from './customers';
39
- export {
40
- Delegations,
41
- type DelegationGetAgentDelegationResponse,
42
- type DelegationListAgentDelegationsResponse,
43
- type DelegationGetAgentDelegationParams,
44
- type DelegationListAgentDelegationsParams,
45
- } from './delegations';
46
- export {
47
- Escalations,
48
- type EscalationListResponse,
49
- type EscalationApproveResponse,
50
- type EscalationDenyResponse,
51
- type EscalationGetResponse,
52
- type EscalationListParams,
53
- type EscalationApproveParams,
54
- type EscalationDenyParams,
55
- type EscalationGetParams,
56
- } from './escalations';
57
43
  export {
58
44
  ExternalAccounts,
59
45
  type ExternalAccountListResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.4.0'; // x-release-please-version
1
+ export const VERSION = '0.5.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.5.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.5.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.4.0'; // x-release-please-version
4
+ exports.VERSION = '0.5.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.4.0'; // x-release-please-version
1
+ export const VERSION = '0.5.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,7 +0,0 @@
1
- import type { Format } from "./types.mjs";
2
- export declare const default_format: Format;
3
- export declare const default_formatter: (v: PropertyKey) => string;
4
- export declare const formatters: Record<Format, (str: PropertyKey) => string>;
5
- export declare const RFC1738 = "RFC1738";
6
- export declare const RFC3986 = "RFC3986";
7
- //# sourceMappingURL=formats.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formats.d.mts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { Format } from "./types.js";
2
- export declare const default_format: Format;
3
- export declare const default_formatter: (v: PropertyKey) => string;
4
- export declare const formatters: Record<Format, (str: PropertyKey) => string>;
5
- export declare const RFC1738 = "RFC1738";
6
- export declare const RFC3986 = "RFC3986";
7
- //# sourceMappingURL=formats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAgB;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RFC3986 = exports.RFC1738 = exports.formatters = exports.default_formatter = exports.default_format = void 0;
4
- exports.default_format = 'RFC3986';
5
- const default_formatter = (v) => String(v);
6
- exports.default_formatter = default_formatter;
7
- exports.formatters = {
8
- RFC1738: (v) => String(v).replace(/%20/g, '+'),
9
- RFC3986: exports.default_formatter,
10
- };
11
- exports.RFC1738 = 'RFC1738';
12
- exports.RFC3986 = 'RFC3986';
13
- //# sourceMappingURL=formats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formats.js","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAW,SAAS,CAAC;AACzC,MAAM,iBAAiB,GAAG,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAlD,QAAA,iBAAiB,qBAAiC;AAClD,QAAA,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,yBAAiB;CAC3B,CAAC;AACW,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,OAAO,GAAG,SAAS,CAAC"}