@nirvana-labs/nirvana 1.91.0 → 1.91.1
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/organizations/address.d.mts +175 -0
- package/resources/organizations/address.d.mts.map +1 -0
- package/resources/organizations/address.d.ts +175 -0
- package/resources/organizations/address.d.ts.map +1 -0
- package/resources/organizations/address.js +56 -0
- package/resources/organizations/address.js.map +1 -0
- package/resources/organizations/address.mjs +52 -0
- package/resources/organizations/address.mjs.map +1 -0
- package/resources/organizations/index.d.mts +1 -0
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +1 -0
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js +3 -1
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +1 -0
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +4 -0
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +4 -0
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +4 -0
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +4 -0
- package/resources/organizations/organizations.mjs.map +1 -1
- package/src/resources/organizations/address.ts +227 -0
- package/src/resources/organizations/api.md +12 -0
- package/src/resources/organizations/index.ts +6 -0
- package/src/resources/organizations/organizations.ts +11 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.91.1 (2026-06-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.91.0...v1.91.1](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.91.0...v1.91.1)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* **internal:** regenerate SDK with no functional changes ([05776f1](https://github.com/nirvana-labs/nirvana-typescript/commit/05776f160914702c6c9d67e0c235824915605bc3))
|
|
10
|
+
|
|
3
11
|
## 1.91.0 (2026-05-29)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.90.1...v1.91.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.90.1...v1.91.0)
|
package/package.json
CHANGED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Address extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create the address for an organization
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const organizationAddress =
|
|
11
|
+
* await client.organizations.address.create(
|
|
12
|
+
* 'organization_id',
|
|
13
|
+
* {
|
|
14
|
+
* city: 'San Francisco',
|
|
15
|
+
* country: 'US',
|
|
16
|
+
* line1: '123 Main St',
|
|
17
|
+
* postal_code: '94105',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(organizationID: string, body: AddressCreateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
23
|
+
/**
|
|
24
|
+
* Update the address for an organization
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const organizationAddress =
|
|
29
|
+
* await client.organizations.address.update(
|
|
30
|
+
* 'organization_id',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
update(organizationID: string, body: AddressUpdateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the address for an organization
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const organizationAddress =
|
|
41
|
+
* await client.organizations.address.get('organization_id');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
get(organizationID: string, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Organization address details.
|
|
48
|
+
*/
|
|
49
|
+
export interface OrganizationAddress {
|
|
50
|
+
/**
|
|
51
|
+
* Address ID.
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* City or locality.
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
60
|
+
*/
|
|
61
|
+
country: string;
|
|
62
|
+
/**
|
|
63
|
+
* When the address was created.
|
|
64
|
+
*/
|
|
65
|
+
created_at: string;
|
|
66
|
+
/**
|
|
67
|
+
* First line of the street address.
|
|
68
|
+
*/
|
|
69
|
+
line1: string;
|
|
70
|
+
/**
|
|
71
|
+
* Second line of the street address. Null when not provided.
|
|
72
|
+
*/
|
|
73
|
+
line2: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Organization ID the address belongs to.
|
|
76
|
+
*/
|
|
77
|
+
organization_id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Postal or ZIP code.
|
|
80
|
+
*/
|
|
81
|
+
postal_code: string;
|
|
82
|
+
/**
|
|
83
|
+
* State, province, or region. Null when not provided.
|
|
84
|
+
*/
|
|
85
|
+
state: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Tax identification number. Null when not provided.
|
|
88
|
+
*/
|
|
89
|
+
tax_id: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Type of the tax identification number. Null when not provided.
|
|
92
|
+
*/
|
|
93
|
+
tax_id_type: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* When the address was updated.
|
|
96
|
+
*/
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AddressCreateParams {
|
|
100
|
+
/**
|
|
101
|
+
* City or locality.
|
|
102
|
+
*/
|
|
103
|
+
city: string;
|
|
104
|
+
/**
|
|
105
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
106
|
+
*/
|
|
107
|
+
country: string;
|
|
108
|
+
/**
|
|
109
|
+
* First line of the street address.
|
|
110
|
+
*/
|
|
111
|
+
line1: string;
|
|
112
|
+
/**
|
|
113
|
+
* Postal or ZIP code.
|
|
114
|
+
*/
|
|
115
|
+
postal_code: string;
|
|
116
|
+
/**
|
|
117
|
+
* Second line of the street address (suite, unit, building).
|
|
118
|
+
*/
|
|
119
|
+
line2?: string;
|
|
120
|
+
/**
|
|
121
|
+
* State, province, or region. Required by some tax jurisdictions (e.g. US, CA).
|
|
122
|
+
*/
|
|
123
|
+
state?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Optional.
|
|
126
|
+
*/
|
|
127
|
+
tax_id?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
130
|
+
* Optional.
|
|
131
|
+
*/
|
|
132
|
+
tax_id_type?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface AddressUpdateParams {
|
|
135
|
+
/**
|
|
136
|
+
* City or locality.
|
|
137
|
+
*/
|
|
138
|
+
city?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
141
|
+
*/
|
|
142
|
+
country?: string;
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
line1?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Second line of the street address (suite, unit, building). Omit to leave
|
|
149
|
+
* unchanged, send null to clear, or send a value to set it.
|
|
150
|
+
*/
|
|
151
|
+
line2?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Postal or ZIP code.
|
|
154
|
+
*/
|
|
155
|
+
postal_code?: string;
|
|
156
|
+
/**
|
|
157
|
+
* State, province, or region. Omit to leave unchanged, send null to clear, or send
|
|
158
|
+
* a value to set it.
|
|
159
|
+
*/
|
|
160
|
+
state?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Omit to leave unchanged, send
|
|
163
|
+
* null to clear, or send a value to set it.
|
|
164
|
+
*/
|
|
165
|
+
tax_id?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
168
|
+
* Omit to leave unchanged, send null to clear, or send a value to set it.
|
|
169
|
+
*/
|
|
170
|
+
tax_id_type?: string | null;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace Address {
|
|
173
|
+
export { type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=address.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;OAQG;IACH,GAAG,CAAC,cAAc,EAAE,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E,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Address extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create the address for an organization
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const organizationAddress =
|
|
11
|
+
* await client.organizations.address.create(
|
|
12
|
+
* 'organization_id',
|
|
13
|
+
* {
|
|
14
|
+
* city: 'San Francisco',
|
|
15
|
+
* country: 'US',
|
|
16
|
+
* line1: '123 Main St',
|
|
17
|
+
* postal_code: '94105',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(organizationID: string, body: AddressCreateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
23
|
+
/**
|
|
24
|
+
* Update the address for an organization
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const organizationAddress =
|
|
29
|
+
* await client.organizations.address.update(
|
|
30
|
+
* 'organization_id',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
update(organizationID: string, body: AddressUpdateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the address for an organization
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const organizationAddress =
|
|
41
|
+
* await client.organizations.address.get('organization_id');
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
get(organizationID: string, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Organization address details.
|
|
48
|
+
*/
|
|
49
|
+
export interface OrganizationAddress {
|
|
50
|
+
/**
|
|
51
|
+
* Address ID.
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* City or locality.
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
60
|
+
*/
|
|
61
|
+
country: string;
|
|
62
|
+
/**
|
|
63
|
+
* When the address was created.
|
|
64
|
+
*/
|
|
65
|
+
created_at: string;
|
|
66
|
+
/**
|
|
67
|
+
* First line of the street address.
|
|
68
|
+
*/
|
|
69
|
+
line1: string;
|
|
70
|
+
/**
|
|
71
|
+
* Second line of the street address. Null when not provided.
|
|
72
|
+
*/
|
|
73
|
+
line2: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Organization ID the address belongs to.
|
|
76
|
+
*/
|
|
77
|
+
organization_id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Postal or ZIP code.
|
|
80
|
+
*/
|
|
81
|
+
postal_code: string;
|
|
82
|
+
/**
|
|
83
|
+
* State, province, or region. Null when not provided.
|
|
84
|
+
*/
|
|
85
|
+
state: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Tax identification number. Null when not provided.
|
|
88
|
+
*/
|
|
89
|
+
tax_id: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Type of the tax identification number. Null when not provided.
|
|
92
|
+
*/
|
|
93
|
+
tax_id_type: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* When the address was updated.
|
|
96
|
+
*/
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AddressCreateParams {
|
|
100
|
+
/**
|
|
101
|
+
* City or locality.
|
|
102
|
+
*/
|
|
103
|
+
city: string;
|
|
104
|
+
/**
|
|
105
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
106
|
+
*/
|
|
107
|
+
country: string;
|
|
108
|
+
/**
|
|
109
|
+
* First line of the street address.
|
|
110
|
+
*/
|
|
111
|
+
line1: string;
|
|
112
|
+
/**
|
|
113
|
+
* Postal or ZIP code.
|
|
114
|
+
*/
|
|
115
|
+
postal_code: string;
|
|
116
|
+
/**
|
|
117
|
+
* Second line of the street address (suite, unit, building).
|
|
118
|
+
*/
|
|
119
|
+
line2?: string;
|
|
120
|
+
/**
|
|
121
|
+
* State, province, or region. Required by some tax jurisdictions (e.g. US, CA).
|
|
122
|
+
*/
|
|
123
|
+
state?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Optional.
|
|
126
|
+
*/
|
|
127
|
+
tax_id?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
130
|
+
* Optional.
|
|
131
|
+
*/
|
|
132
|
+
tax_id_type?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface AddressUpdateParams {
|
|
135
|
+
/**
|
|
136
|
+
* City or locality.
|
|
137
|
+
*/
|
|
138
|
+
city?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
141
|
+
*/
|
|
142
|
+
country?: string;
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
line1?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Second line of the street address (suite, unit, building). Omit to leave
|
|
149
|
+
* unchanged, send null to clear, or send a value to set it.
|
|
150
|
+
*/
|
|
151
|
+
line2?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Postal or ZIP code.
|
|
154
|
+
*/
|
|
155
|
+
postal_code?: string;
|
|
156
|
+
/**
|
|
157
|
+
* State, province, or region. Omit to leave unchanged, send null to clear, or send
|
|
158
|
+
* a value to set it.
|
|
159
|
+
*/
|
|
160
|
+
state?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Omit to leave unchanged, send
|
|
163
|
+
* null to clear, or send a value to set it.
|
|
164
|
+
*/
|
|
165
|
+
tax_id?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
168
|
+
* Omit to leave unchanged, send null to clear, or send a value to set it.
|
|
169
|
+
*/
|
|
170
|
+
tax_id_type?: string | null;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace Address {
|
|
173
|
+
export { type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBA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hB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Address = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Address extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create the address for an organization
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const organizationAddress =
|
|
14
|
+
* await client.organizations.address.create(
|
|
15
|
+
* 'organization_id',
|
|
16
|
+
* {
|
|
17
|
+
* city: 'San Francisco',
|
|
18
|
+
* country: 'US',
|
|
19
|
+
* line1: '123 Main St',
|
|
20
|
+
* postal_code: '94105',
|
|
21
|
+
* },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(organizationID, body, options) {
|
|
26
|
+
return this._client.post((0, path_1.path) `/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update the address for an organization
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const organizationAddress =
|
|
34
|
+
* await client.organizations.address.update(
|
|
35
|
+
* 'organization_id',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
update(organizationID, body, options) {
|
|
40
|
+
return this._client.patch((0, path_1.path) `/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get the address for an organization
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const organizationAddress =
|
|
48
|
+
* await client.organizations.address.get('organization_id');
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
get(organizationID, options) {
|
|
52
|
+
return this._client.get((0, path_1.path) `/v1/organizations/${organizationID}/address`, options);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Address = Address;
|
|
56
|
+
//# sourceMappingURL=address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAzDD,0BAyDC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Address extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create the address for an organization
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const organizationAddress =
|
|
11
|
+
* await client.organizations.address.create(
|
|
12
|
+
* 'organization_id',
|
|
13
|
+
* {
|
|
14
|
+
* city: 'San Francisco',
|
|
15
|
+
* country: 'US',
|
|
16
|
+
* line1: '123 Main St',
|
|
17
|
+
* postal_code: '94105',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(organizationID, body, options) {
|
|
23
|
+
return this._client.post(path `/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Update the address for an organization
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const organizationAddress =
|
|
31
|
+
* await client.organizations.address.update(
|
|
32
|
+
* 'organization_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
update(organizationID, body, options) {
|
|
37
|
+
return this._client.patch(path `/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get the address for an organization
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const organizationAddress =
|
|
45
|
+
* await client.organizations.address.get('organization_id');
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
get(organizationID, options) {
|
|
49
|
+
return this._client.get(path `/v1/organizations/${organizationID}/address`, options);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=address.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.mjs","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,cAAc,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,cAAc,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Address, type OrganizationAddress, type AddressCreateParams, type AddressUpdateParams, } from "./address.mjs";
|
|
1
2
|
export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipListParams, type MembershipGetParams, type OrganizationMembershipsCursor, } from "./memberships.mjs";
|
|
2
3
|
export { Organizations } from "./organizations.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,sBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Address, type OrganizationAddress, type AddressCreateParams, type AddressUpdateParams, } from "./address.js";
|
|
1
2
|
export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipListParams, type MembershipGetParams, type OrganizationMembershipsCursor, } from "./memberships.js";
|
|
2
3
|
export { Organizations } from "./organizations.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,2BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,qBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,2BAAwB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Organizations = exports.Memberships = void 0;
|
|
4
|
+
exports.Organizations = exports.Memberships = exports.Address = void 0;
|
|
5
|
+
var address_1 = require("./address.js");
|
|
6
|
+
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return address_1.Address; } });
|
|
5
7
|
var memberships_1 = require("./memberships.js");
|
|
6
8
|
Object.defineProperty(exports, "Memberships", { enumerable: true, get: function () { return memberships_1.Memberships; } });
|
|
7
9
|
var organizations_1 = require("./organizations.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Address, } from "./address.mjs";
|
|
2
3
|
export { Memberships, } from "./memberships.mjs";
|
|
3
4
|
export { Organizations } from "./organizations.mjs";
|
|
4
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,aAAa,EAAE,4BAAwB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
|
+
import * as AddressAPI from "./address.mjs";
|
|
4
|
+
import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from "./address.mjs";
|
|
3
5
|
import * as MembershipsAPI from "./memberships.mjs";
|
|
4
6
|
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.mjs";
|
|
5
7
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
@@ -7,6 +9,7 @@ import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mj
|
|
|
7
9
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
10
|
export declare class Organizations extends APIResource {
|
|
9
11
|
memberships: MembershipsAPI.Memberships;
|
|
12
|
+
address: AddressAPI.Address;
|
|
10
13
|
/**
|
|
11
14
|
* Create a new organization
|
|
12
15
|
*
|
|
@@ -196,5 +199,6 @@ export interface OrganizationListParams extends CursorParams {
|
|
|
196
199
|
export declare namespace Organizations {
|
|
197
200
|
export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type OrganizationServices as OrganizationServices, type OrganizationType as OrganizationType, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
|
|
198
201
|
export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
202
|
+
export { Address as Address, type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
199
203
|
}
|
|
200
204
|
//# sourceMappingURL=organizations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;
|
|
1
|
+
{"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,sBAAkB;AACnG,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,0BAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAA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AK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
|
+
import * as AddressAPI from "./address.js";
|
|
4
|
+
import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from "./address.js";
|
|
3
5
|
import * as MembershipsAPI from "./memberships.js";
|
|
4
6
|
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.js";
|
|
5
7
|
import { APIPromise } from "../../core/api-promise.js";
|
|
@@ -7,6 +9,7 @@ import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js
|
|
|
7
9
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
8
10
|
export declare class Organizations extends APIResource {
|
|
9
11
|
memberships: MembershipsAPI.Memberships;
|
|
12
|
+
address: AddressAPI.Address;
|
|
10
13
|
/**
|
|
11
14
|
* Create a new organization
|
|
12
15
|
*
|
|
@@ -196,5 +199,6 @@ export interface OrganizationListParams extends CursorParams {
|
|
|
196
199
|
export declare namespace Organizations {
|
|
197
200
|
export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type OrganizationServices as OrganizationServices, type OrganizationType as OrganizationType, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
|
|
198
201
|
export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
202
|
+
export { Address as Address, type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
199
203
|
}
|
|
200
204
|
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B,yBAAsB;AACvB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAE/E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,qBAAkB;AACnG,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB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,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;CAAG;AAK/D,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Organizations = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const AddressAPI = tslib_1.__importStar(require("./address.js"));
|
|
8
|
+
const address_1 = require("./address.js");
|
|
7
9
|
const MembershipsAPI = tslib_1.__importStar(require("./memberships.js"));
|
|
8
10
|
const memberships_1 = require("./memberships.js");
|
|
9
11
|
const pagination_1 = require("../../core/pagination.js");
|
|
@@ -13,6 +15,7 @@ class Organizations extends resource_1.APIResource {
|
|
|
13
15
|
constructor() {
|
|
14
16
|
super(...arguments);
|
|
15
17
|
this.memberships = new MembershipsAPI.Memberships(this._client);
|
|
18
|
+
this.address = new AddressAPI.Address(this._client);
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
21
|
* Create a new organization
|
|
@@ -84,4 +87,5 @@ class Organizations extends resource_1.APIResource {
|
|
|
84
87
|
}
|
|
85
88
|
exports.Organizations = Organizations;
|
|
86
89
|
Organizations.Memberships = memberships_1.Memberships;
|
|
90
|
+
Organizations.Address = address_1.Address;
|
|
87
91
|
//# sourceMappingURL=organizations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,yEAAgD;AAChD,kDAOuB;AAEvB,yDAA+E;AAC/E,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,iEAAwC;AACxC,0CAAmG;AACnG,yEAAgD;AAChD,kDAOuB;AAEvB,yDAA+E;AAC/E,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgFrE,CAAC;IA9EC;;;;;;;;;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1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as AddressAPI from "./address.mjs";
|
|
4
|
+
import { Address } from "./address.mjs";
|
|
3
5
|
import * as MembershipsAPI from "./memberships.mjs";
|
|
4
6
|
import { Memberships, } from "./memberships.mjs";
|
|
5
7
|
import { Cursor } from "../../core/pagination.mjs";
|
|
@@ -9,6 +11,7 @@ export class Organizations extends APIResource {
|
|
|
9
11
|
constructor() {
|
|
10
12
|
super(...arguments);
|
|
11
13
|
this.memberships = new MembershipsAPI.Memberships(this._client);
|
|
14
|
+
this.address = new AddressAPI.Address(this._client);
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
14
17
|
* Create a new organization
|
|
@@ -79,4 +82,5 @@ export class Organizations extends APIResource {
|
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
Organizations.Memberships = Memberships;
|
|
85
|
+
Organizations.Address = Address;
|
|
82
86
|
//# sourceMappingURL=organizations.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAGL,WAAW,GAIZ,0BAAsB;AAEvB,OAAO,EAAE,MAAM,EAAkC,kCAA8B;AAC/E,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;A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AG,CAAC,IAAI,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,cAAc,QAAQ,EAAE;YACxE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAiKD,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;AACxC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Address extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create the address for an organization
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const organizationAddress =
|
|
15
|
+
* await client.organizations.address.create(
|
|
16
|
+
* 'organization_id',
|
|
17
|
+
* {
|
|
18
|
+
* city: 'San Francisco',
|
|
19
|
+
* country: 'US',
|
|
20
|
+
* line1: '123 Main St',
|
|
21
|
+
* postal_code: '94105',
|
|
22
|
+
* },
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(
|
|
27
|
+
organizationID: string,
|
|
28
|
+
body: AddressCreateParams,
|
|
29
|
+
options?: RequestOptions,
|
|
30
|
+
): APIPromise<OrganizationAddress> {
|
|
31
|
+
return this._client.post(path`/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Update the address for an organization
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const organizationAddress =
|
|
40
|
+
* await client.organizations.address.update(
|
|
41
|
+
* 'organization_id',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(
|
|
46
|
+
organizationID: string,
|
|
47
|
+
body: AddressUpdateParams,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<OrganizationAddress> {
|
|
50
|
+
return this._client.patch(path`/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get the address for an organization
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const organizationAddress =
|
|
59
|
+
* await client.organizations.address.get('organization_id');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
get(organizationID: string, options?: RequestOptions): APIPromise<OrganizationAddress> {
|
|
63
|
+
return this._client.get(path`/v1/organizations/${organizationID}/address`, options);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Organization address details.
|
|
69
|
+
*/
|
|
70
|
+
export interface OrganizationAddress {
|
|
71
|
+
/**
|
|
72
|
+
* Address ID.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* City or locality.
|
|
78
|
+
*/
|
|
79
|
+
city: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
83
|
+
*/
|
|
84
|
+
country: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* When the address was created.
|
|
88
|
+
*/
|
|
89
|
+
created_at: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* First line of the street address.
|
|
93
|
+
*/
|
|
94
|
+
line1: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Second line of the street address. Null when not provided.
|
|
98
|
+
*/
|
|
99
|
+
line2: string | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Organization ID the address belongs to.
|
|
103
|
+
*/
|
|
104
|
+
organization_id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Postal or ZIP code.
|
|
108
|
+
*/
|
|
109
|
+
postal_code: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* State, province, or region. Null when not provided.
|
|
113
|
+
*/
|
|
114
|
+
state: string | null;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Tax identification number. Null when not provided.
|
|
118
|
+
*/
|
|
119
|
+
tax_id: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Type of the tax identification number. Null when not provided.
|
|
123
|
+
*/
|
|
124
|
+
tax_id_type: string | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* When the address was updated.
|
|
128
|
+
*/
|
|
129
|
+
updated_at: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface AddressCreateParams {
|
|
133
|
+
/**
|
|
134
|
+
* City or locality.
|
|
135
|
+
*/
|
|
136
|
+
city: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
140
|
+
*/
|
|
141
|
+
country: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
line1: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Postal or ZIP code.
|
|
150
|
+
*/
|
|
151
|
+
postal_code: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Second line of the street address (suite, unit, building).
|
|
155
|
+
*/
|
|
156
|
+
line2?: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* State, province, or region. Required by some tax jurisdictions (e.g. US, CA).
|
|
160
|
+
*/
|
|
161
|
+
state?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Optional.
|
|
165
|
+
*/
|
|
166
|
+
tax_id?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
170
|
+
* Optional.
|
|
171
|
+
*/
|
|
172
|
+
tax_id_type?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface AddressUpdateParams {
|
|
176
|
+
/**
|
|
177
|
+
* City or locality.
|
|
178
|
+
*/
|
|
179
|
+
city?: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
183
|
+
*/
|
|
184
|
+
country?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* First line of the street address.
|
|
188
|
+
*/
|
|
189
|
+
line1?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Second line of the street address (suite, unit, building). Omit to leave
|
|
193
|
+
* unchanged, send null to clear, or send a value to set it.
|
|
194
|
+
*/
|
|
195
|
+
line2?: string | null;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Postal or ZIP code.
|
|
199
|
+
*/
|
|
200
|
+
postal_code?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* State, province, or region. Omit to leave unchanged, send null to clear, or send
|
|
204
|
+
* a value to set it.
|
|
205
|
+
*/
|
|
206
|
+
state?: string | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Omit to leave unchanged, send
|
|
210
|
+
* null to clear, or send a value to set it.
|
|
211
|
+
*/
|
|
212
|
+
tax_id?: string | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
216
|
+
* Omit to leave unchanged, send null to clear, or send a value to set it.
|
|
217
|
+
*/
|
|
218
|
+
tax_id_type?: string | null;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export declare namespace Address {
|
|
222
|
+
export {
|
|
223
|
+
type OrganizationAddress as OrganizationAddress,
|
|
224
|
+
type AddressCreateParams as AddressCreateParams,
|
|
225
|
+
type AddressUpdateParams as AddressUpdateParams,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
@@ -27,3 +27,15 @@ Methods:
|
|
|
27
27
|
|
|
28
28
|
- <code title="get /v1/organizations/{organization_id}/memberships">client.organizations.memberships.<a href="./src/resources/organizations/memberships.ts">list</a>(organizationID, { ...params }) -> OrganizationMembershipsCursor</code>
|
|
29
29
|
- <code title="get /v1/organizations/{organization_id}/memberships/{membership_id}">client.organizations.memberships.<a href="./src/resources/organizations/memberships.ts">get</a>(membershipID, { ...params }) -> OrganizationMembership</code>
|
|
30
|
+
|
|
31
|
+
## Address
|
|
32
|
+
|
|
33
|
+
Types:
|
|
34
|
+
|
|
35
|
+
- <code><a href="./src/resources/organizations/address.ts">OrganizationAddress</a></code>
|
|
36
|
+
|
|
37
|
+
Methods:
|
|
38
|
+
|
|
39
|
+
- <code title="post /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">create</a>(organizationID, { ...params }) -> OrganizationAddress</code>
|
|
40
|
+
- <code title="patch /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">update</a>(organizationID, { ...params }) -> OrganizationAddress</code>
|
|
41
|
+
- <code title="get /v1/organizations/{organization_id}/address">client.organizations.address.<a href="./src/resources/organizations/address.ts">get</a>(organizationID) -> OrganizationAddress</code>
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Address,
|
|
5
|
+
type OrganizationAddress,
|
|
6
|
+
type AddressCreateParams,
|
|
7
|
+
type AddressUpdateParams,
|
|
8
|
+
} from './address';
|
|
3
9
|
export {
|
|
4
10
|
Memberships,
|
|
5
11
|
type OrganizationMembership,
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as AddressAPI from './address';
|
|
6
|
+
import { Address, AddressCreateParams, AddressUpdateParams, OrganizationAddress } from './address';
|
|
5
7
|
import * as MembershipsAPI from './memberships';
|
|
6
8
|
import {
|
|
7
9
|
MembershipGetParams,
|
|
@@ -19,6 +21,7 @@ import { path } from '../../internal/utils/path';
|
|
|
19
21
|
|
|
20
22
|
export class Organizations extends APIResource {
|
|
21
23
|
memberships: MembershipsAPI.Memberships = new MembershipsAPI.Memberships(this._client);
|
|
24
|
+
address: AddressAPI.Address = new AddressAPI.Address(this._client);
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* Create a new organization
|
|
@@ -260,6 +263,7 @@ export interface OrganizationUpdateParams {
|
|
|
260
263
|
export interface OrganizationListParams extends CursorParams {}
|
|
261
264
|
|
|
262
265
|
Organizations.Memberships = Memberships;
|
|
266
|
+
Organizations.Address = Address;
|
|
263
267
|
|
|
264
268
|
export declare namespace Organizations {
|
|
265
269
|
export {
|
|
@@ -282,4 +286,11 @@ export declare namespace Organizations {
|
|
|
282
286
|
type MembershipListParams as MembershipListParams,
|
|
283
287
|
type MembershipGetParams as MembershipGetParams,
|
|
284
288
|
};
|
|
289
|
+
|
|
290
|
+
export {
|
|
291
|
+
Address as Address,
|
|
292
|
+
type OrganizationAddress as OrganizationAddress,
|
|
293
|
+
type AddressCreateParams as AddressCreateParams,
|
|
294
|
+
type AddressUpdateParams as AddressUpdateParams,
|
|
295
|
+
};
|
|
285
296
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.91.
|
|
1
|
+
export const VERSION = '1.91.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.91.
|
|
1
|
+
export declare const VERSION = "1.91.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.91.
|
|
1
|
+
export declare const VERSION = "1.91.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.91.
|
|
1
|
+
export const VERSION = '1.91.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|