@cloudfleet/sdk 0.11.4 → 0.12.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.
@@ -1,6 +1,12 @@
1
1
  export declare const BillingContactSchema: {
2
2
  readonly type: "object";
3
3
  readonly properties: {
4
+ readonly type: {
5
+ readonly type: "string";
6
+ readonly description: "Type of the organization. `business` for legal entities, `personal` for individuals.";
7
+ readonly example: "business";
8
+ readonly enum: readonly ["business", "personal"];
9
+ };
4
10
  readonly company: {
5
11
  readonly type: "string";
6
12
  readonly maxLength: 120;
@@ -76,7 +82,7 @@ export declare const BillingContactSchema: {
76
82
  readonly enum: readonly ["ad_nrt", "ae_trn", "al_tin", "am_tin", "ao_tin", "ar_cuit", "at_vat", "au_abn", "au_arn", "ba_tin", "bb_tin", "be_vat", "bg_uic", "bg_vat", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", "ca_pst_bc", "ca_pst_mb", "ca_pst_sk", "ca_qst", "cd_nif", "ch_uid", "ch_vat", "cl_tin", "cn_tin", "co_nit", "cr_tin", "cy_vat", "cz_vat", "de_stn", "de_vat", "dk_vat", "do_rcn", "ec_ruc", "ee_vat", "eg_tin", "es_cif", "es_vat", "eu_oss_vat", "fi_vat", "fr_vat", "gb_vat", "ge_vat", "gn_nif", "gr_vat", "hk_br", "hr_oib", "hr_vat", "hu_tin", "hu_vat", "id_npwp", "ie_vat", "il_vat", "in_gst", "is_vat", "it_vat", "jp_cn", "jp_rn", "jp_trn", "ke_pin", "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "lt_vat", "lu_vat", "lv_vat", "ma_vat", "md_vat", "me_pib", "mk_vat", "mr_nif", "mt_vat", "mx_rfc", "my_frp", "my_itn", "my_sst", "ng_tin", "nl_vat", "no_vat", "no_voec", "np_pan", "nz_gst", "om_vat", "pe_ruc", "ph_tin", "pl_vat", "pt_vat", "ro_tin", "ro_vat", "rs_pib", "ru_inn", "ru_kpp", "sa_vat", "se_vat", "sg_gst", "sg_uen", "si_tin", "si_vat", "sk_vat", "sn_ninea", "sr_fin", "sv_nit", "th_vat", "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", "ug_tin", "us_ein", "uy_ruc", "uz_tin", "uz_vat", "ve_rif", "vn_tin", "xi_vat", "za_vat", "zm_tin", "zw_tin", ""];
77
83
  };
78
84
  };
79
- readonly required: readonly ["email", "individual_name"];
85
+ readonly required: readonly ["type", "email", "individual_name"];
80
86
  readonly additionalProperties: false;
81
87
  };
82
88
  export declare const BillingCreditsSchema: {
@@ -311,6 +317,11 @@ export declare const ClusterJoinInformationSchema: {
311
317
  readonly description: "Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.";
312
318
  readonly example: "10.96.0.10";
313
319
  };
320
+ readonly pod_cidr: {
321
+ readonly type: "string";
322
+ readonly description: "Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.";
323
+ readonly example: "10.244.0.0/16";
324
+ };
314
325
  readonly auth_key: {
315
326
  readonly type: "string";
316
327
  readonly description: "Authentication key for the cluster.";
@@ -373,7 +384,7 @@ export declare const ClusterJoinInformationSchema: {
373
384
  readonly description: "OIDC Information for hosts to access to third party API's.";
374
385
  };
375
386
  };
376
- readonly required: readonly ["certificate_authority", "endpoint", "cluster_dns", "auth_key", "bootstrap_token", "versions", "third_party_api_access_config"];
387
+ readonly required: readonly ["certificate_authority", "endpoint", "cluster_dns", "pod_cidr", "auth_key", "bootstrap_token", "versions", "third_party_api_access_config"];
377
388
  readonly additionalProperties: false;
378
389
  };
379
390
  export declare const ClusterSchema: {
@@ -864,6 +875,26 @@ export declare const FleetUpdateInputSchema: {
864
875
  readonly required: readonly ["scalingProfile"];
865
876
  readonly additionalProperties: false;
866
877
  };
878
+ export declare const InviteCreateInputSchema: {
879
+ readonly type: "object";
880
+ readonly properties: {
881
+ readonly email: {
882
+ readonly type: "string";
883
+ readonly format: "email";
884
+ readonly description: "Email address of the user to invite.";
885
+ readonly example: "email@example.com";
886
+ };
887
+ readonly role: {
888
+ readonly type: "string";
889
+ readonly description: "Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.";
890
+ readonly default: "User";
891
+ readonly example: "User";
892
+ readonly enum: readonly ["Administrator", "User"];
893
+ };
894
+ };
895
+ readonly required: readonly ["email"];
896
+ readonly additionalProperties: false;
897
+ };
867
898
  export declare const InviteSchema: {
868
899
  readonly type: "object";
869
900
  readonly properties: {
@@ -895,6 +926,13 @@ export declare const InviteSchema: {
895
926
  readonly description: "Generated unique invite code.";
896
927
  readonly example: "7kUZnH7nnKUFfvc4NK2KQF";
897
928
  };
929
+ readonly role: {
930
+ readonly type: "string";
931
+ readonly description: "Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.";
932
+ readonly default: "User";
933
+ readonly example: "User";
934
+ readonly enum: readonly ["Administrator", "User"];
935
+ };
898
936
  };
899
937
  readonly required: readonly ["date_created"];
900
938
  readonly additionalProperties: false;
@@ -1092,6 +1130,12 @@ export declare const MarketplaceListingSchema: {
1092
1130
  export declare const OrganizationCreateInputSchema: {
1093
1131
  readonly type: "object";
1094
1132
  readonly properties: {
1133
+ readonly type: {
1134
+ readonly type: "string";
1135
+ readonly description: "Type of the organization. `business` for legal entities, `personal` for individuals.";
1136
+ readonly example: "business";
1137
+ readonly enum: readonly ["business", "personal"];
1138
+ };
1095
1139
  readonly email: {
1096
1140
  readonly type: "string";
1097
1141
  readonly format: "email";
@@ -1100,11 +1144,13 @@ export declare const OrganizationCreateInputSchema: {
1100
1144
  };
1101
1145
  readonly first_name: {
1102
1146
  readonly type: "string";
1147
+ readonly minLength: 1;
1103
1148
  readonly description: "First name of the billing contact person.";
1104
1149
  readonly example: "John";
1105
1150
  };
1106
1151
  readonly last_name: {
1107
1152
  readonly type: "string";
1153
+ readonly minLength: 1;
1108
1154
  readonly description: "Last name of the billing contact person.";
1109
1155
  readonly example: "Doe";
1110
1156
  };
@@ -1122,7 +1168,19 @@ export declare const OrganizationCreateInputSchema: {
1122
1168
  readonly description: "Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.";
1123
1169
  };
1124
1170
  };
1125
- readonly required: readonly ["email", "first_name", "last_name", "company_name", "password"];
1171
+ readonly required: readonly ["type", "email", "first_name", "last_name", "company_name", "password"];
1172
+ readonly additionalProperties: false;
1173
+ };
1174
+ export declare const OrganizationCreateOutputSchema: {
1175
+ readonly type: "object";
1176
+ readonly properties: {
1177
+ readonly id: {
1178
+ readonly type: "string";
1179
+ readonly description: "Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.";
1180
+ readonly example: "organization-id";
1181
+ };
1182
+ };
1183
+ readonly required: readonly ["id"];
1126
1184
  readonly additionalProperties: false;
1127
1185
  };
1128
1186
  export declare const OrganizationSchema: {
@@ -1141,6 +1199,12 @@ export declare const OrganizationSchema: {
1141
1199
  readonly description: "Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.";
1142
1200
  readonly example: "ACME Corp.";
1143
1201
  };
1202
+ readonly type: {
1203
+ readonly type: "string";
1204
+ readonly description: "Type of the organization. `business` for legal entities, `personal` for individuals.";
1205
+ readonly example: "business";
1206
+ readonly enum: readonly ["business", "personal"];
1207
+ };
1144
1208
  readonly date_created: {
1145
1209
  readonly type: "string";
1146
1210
  readonly format: "date-time";
@@ -1234,8 +1298,14 @@ export declare const OrganizationSchema: {
1234
1298
  readonly description: "Status of the organization. Can be `active` or `closed`, or `suspended`.";
1235
1299
  readonly enum: readonly ["active", "closed", "suspended"];
1236
1300
  };
1301
+ readonly verification: {
1302
+ readonly type: "string";
1303
+ readonly description: "Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.";
1304
+ readonly example: "verified";
1305
+ readonly enum: readonly ["none", "submitted", "verified"];
1306
+ };
1237
1307
  };
1238
- readonly required: readonly ["id", "date_created", "quota", "status"];
1308
+ readonly required: readonly ["id", "type", "date_created", "quota", "status", "verification"];
1239
1309
  readonly additionalProperties: false;
1240
1310
  };
1241
1311
  export declare const PaymentMethodSchema: {
@@ -1243,26 +1313,19 @@ export declare const PaymentMethodSchema: {
1243
1313
  readonly properties: {
1244
1314
  readonly id: {
1245
1315
  readonly type: "string";
1246
- readonly format: "uuid";
1247
- readonly description: "Unique identifier of the organization. UUID v4 string in canonical form.";
1248
- readonly example: "e94d30ec-a2dd-4dcb-832c-ac2be144ba91";
1249
- };
1250
- readonly setup: {
1251
- readonly type: "boolean";
1252
- readonly description: "Whether organization payment method was set up and ready to use for payments.";
1253
- readonly example: true;
1316
+ readonly description: "Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.";
1317
+ readonly example: "pm_1MtwBwLkdIwHu7ix28a3tqPa";
1254
1318
  };
1255
1319
  readonly type: {
1256
1320
  readonly type: "string";
1257
- readonly nullable: true;
1258
- readonly description: "Payment method type type. Only `card` payments supported at the moment.";
1321
+ readonly description: "Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.";
1259
1322
  readonly example: "card";
1260
- readonly enum: readonly ["card"];
1323
+ readonly enum: readonly ["card", "sepa_debit", "bank_transfer"];
1261
1324
  };
1262
1325
  readonly last4: {
1263
1326
  readonly type: "string";
1264
1327
  readonly nullable: true;
1265
- readonly description: "Last 4 digits of the payment card number.";
1328
+ readonly description: "Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.";
1266
1329
  readonly example: "4242";
1267
1330
  };
1268
1331
  readonly exp_month: {
@@ -1270,25 +1333,46 @@ export declare const PaymentMethodSchema: {
1270
1333
  readonly minimum: 1;
1271
1334
  readonly maximum: 12;
1272
1335
  readonly nullable: true;
1273
- readonly description: "Two-digit number representing the card's expiration month.";
1274
- readonly example: "12";
1336
+ readonly description: "Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.";
1337
+ readonly example: 12;
1275
1338
  };
1276
1339
  readonly exp_year: {
1277
1340
  readonly type: "integer";
1278
- readonly minimum: 2024;
1279
1341
  readonly nullable: true;
1280
- readonly description: "Four-digit number representing the card's expiration year.";
1281
- readonly example: "2028";
1342
+ readonly description: "Four-digit number representing the card's expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.";
1343
+ readonly example: 2028;
1282
1344
  };
1283
1345
  readonly brand: {
1284
1346
  readonly type: "string";
1285
1347
  readonly nullable: true;
1286
- readonly description: "Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.";
1348
+ readonly description: "Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.";
1287
1349
  readonly example: "visa";
1288
- readonly enum: readonly ["amex", "diners", "discover", "eftpos_au", "jcb", "mastercard", "unionpay", "visa", "unknown"];
1350
+ };
1351
+ readonly iban: {
1352
+ readonly type: "string";
1353
+ readonly nullable: true;
1354
+ readonly description: "Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet's virtual receiving account, shown in full so the customer can pay into it.";
1355
+ readonly example: "DE11243015658023127510";
1356
+ };
1357
+ readonly bic: {
1358
+ readonly type: "string";
1359
+ readonly nullable: true;
1360
+ readonly description: "BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.";
1361
+ readonly example: "SOGEDEFFXXX";
1362
+ };
1363
+ readonly account_holder_name: {
1364
+ readonly type: "string";
1365
+ readonly nullable: true;
1366
+ readonly description: "Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.";
1367
+ readonly example: "Cloudfleet GmbH";
1368
+ };
1369
+ readonly is_default: {
1370
+ readonly type: "boolean";
1371
+ readonly description: "Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).";
1372
+ readonly example: true;
1289
1373
  };
1290
1374
  };
1291
- readonly required: readonly ["id", "setup", "type", "last4", "exp_month", "exp_year", "brand"];
1375
+ readonly required: readonly ["id", "type", "last4", "exp_month", "exp_year", "brand", "iban", "bic", "account_holder_name", "is_default"];
1292
1376
  readonly additionalProperties: false;
1293
1377
  };
1294
1378
  export declare const PlatformQuotaSchema: {
@@ -2250,18 +2334,6 @@ export declare const UserCreateInputSchema: {
2250
2334
  readonly minLength: 8;
2251
2335
  readonly description: "User password. Must be at least 8 characters long.";
2252
2336
  };
2253
- readonly status: {
2254
- readonly type: "string";
2255
- readonly description: "Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.";
2256
- readonly example: "active";
2257
- readonly enum: readonly ["active", "inactive"];
2258
- };
2259
- readonly role: {
2260
- readonly type: "string";
2261
- readonly description: "User role. Can be 'Administrator', 'User'.";
2262
- readonly example: "User";
2263
- readonly enum: readonly ["Administrator", "User"];
2264
- };
2265
2337
  };
2266
2338
  readonly required: readonly ["email", "first_name", "last_name", "code", "password"];
2267
2339
  readonly additionalProperties: false;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../src/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoNvB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DvB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CzB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4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;;;;;;;;;;;;;;;;CAmFtB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJf,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CA0BzB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cd,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;CAsBzB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CA0BpB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFtB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Cd,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CxB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEb,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CxB,CAAC"}
@@ -2,6 +2,15 @@
2
2
  export const BillingContactSchema = {
3
3
  type: 'object',
4
4
  properties: {
5
+ type: {
6
+ type: 'string',
7
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
8
+ example: 'business',
9
+ enum: [
10
+ 'business',
11
+ 'personal'
12
+ ]
13
+ },
5
14
  company: {
6
15
  type: 'string',
7
16
  maxLength: 120,
@@ -207,6 +216,7 @@ export const BillingContactSchema = {
207
216
  }
208
217
  },
209
218
  required: [
219
+ 'type',
210
220
  'email',
211
221
  'individual_name'
212
222
  ],
@@ -503,6 +513,11 @@ export const ClusterJoinInformationSchema = {
503
513
  description: 'Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.',
504
514
  example: '10.96.0.10'
505
515
  },
516
+ pod_cidr: {
517
+ type: 'string',
518
+ description: 'Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.',
519
+ example: '10.244.0.0/16'
520
+ },
506
521
  auth_key: {
507
522
  type: 'string',
508
523
  description: 'Authentication key for the cluster.',
@@ -578,6 +593,7 @@ export const ClusterJoinInformationSchema = {
578
593
  'certificate_authority',
579
594
  'endpoint',
580
595
  'cluster_dns',
596
+ 'pod_cidr',
581
597
  'auth_key',
582
598
  'bootstrap_token',
583
599
  'versions',
@@ -1843,6 +1859,31 @@ export const FleetUpdateInputSchema = {
1843
1859
  ],
1844
1860
  additionalProperties: false
1845
1861
  };
1862
+ export const InviteCreateInputSchema = {
1863
+ type: 'object',
1864
+ properties: {
1865
+ email: {
1866
+ type: 'string',
1867
+ format: 'email',
1868
+ description: 'Email address of the user to invite.',
1869
+ example: 'email@example.com'
1870
+ },
1871
+ role: {
1872
+ type: 'string',
1873
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
1874
+ default: 'User',
1875
+ example: 'User',
1876
+ enum: [
1877
+ 'Administrator',
1878
+ 'User'
1879
+ ]
1880
+ }
1881
+ },
1882
+ required: [
1883
+ 'email'
1884
+ ],
1885
+ additionalProperties: false
1886
+ };
1846
1887
  export const InviteSchema = {
1847
1888
  type: 'object',
1848
1889
  properties: {
@@ -1873,6 +1914,16 @@ export const InviteSchema = {
1873
1914
  type: 'string',
1874
1915
  description: 'Generated unique invite code.',
1875
1916
  example: '7kUZnH7nnKUFfvc4NK2KQF'
1917
+ },
1918
+ role: {
1919
+ type: 'string',
1920
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
1921
+ default: 'User',
1922
+ example: 'User',
1923
+ enum: [
1924
+ 'Administrator',
1925
+ 'User'
1926
+ ]
1876
1927
  }
1877
1928
  },
1878
1929
  required: [
@@ -2093,6 +2144,15 @@ export const MarketplaceListingSchema = {
2093
2144
  export const OrganizationCreateInputSchema = {
2094
2145
  type: 'object',
2095
2146
  properties: {
2147
+ type: {
2148
+ type: 'string',
2149
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2150
+ example: 'business',
2151
+ enum: [
2152
+ 'business',
2153
+ 'personal'
2154
+ ]
2155
+ },
2096
2156
  email: {
2097
2157
  type: 'string',
2098
2158
  format: 'email',
@@ -2101,11 +2161,13 @@ export const OrganizationCreateInputSchema = {
2101
2161
  },
2102
2162
  first_name: {
2103
2163
  type: 'string',
2164
+ minLength: 1,
2104
2165
  description: 'First name of the billing contact person.',
2105
2166
  example: 'John'
2106
2167
  },
2107
2168
  last_name: {
2108
2169
  type: 'string',
2170
+ minLength: 1,
2109
2171
  description: 'Last name of the billing contact person.',
2110
2172
  example: 'Doe'
2111
2173
  },
@@ -2124,6 +2186,7 @@ export const OrganizationCreateInputSchema = {
2124
2186
  }
2125
2187
  },
2126
2188
  required: [
2189
+ 'type',
2127
2190
  'email',
2128
2191
  'first_name',
2129
2192
  'last_name',
@@ -2132,6 +2195,20 @@ export const OrganizationCreateInputSchema = {
2132
2195
  ],
2133
2196
  additionalProperties: false
2134
2197
  };
2198
+ export const OrganizationCreateOutputSchema = {
2199
+ type: 'object',
2200
+ properties: {
2201
+ id: {
2202
+ type: 'string',
2203
+ description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
2204
+ example: 'organization-id'
2205
+ }
2206
+ },
2207
+ required: [
2208
+ 'id'
2209
+ ],
2210
+ additionalProperties: false
2211
+ };
2135
2212
  export const OrganizationSchema = {
2136
2213
  type: 'object',
2137
2214
  properties: {
@@ -2148,6 +2225,15 @@ export const OrganizationSchema = {
2148
2225
  description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
2149
2226
  example: 'ACME Corp.'
2150
2227
  },
2228
+ type: {
2229
+ type: 'string',
2230
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2231
+ example: 'business',
2232
+ enum: [
2233
+ 'business',
2234
+ 'personal'
2235
+ ]
2236
+ },
2151
2237
  date_created: {
2152
2238
  type: 'string',
2153
2239
  format: 'date-time',
@@ -2257,13 +2343,25 @@ export const OrganizationSchema = {
2257
2343
  'closed',
2258
2344
  'suspended'
2259
2345
  ]
2346
+ },
2347
+ verification: {
2348
+ type: 'string',
2349
+ description: 'Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.',
2350
+ example: 'verified',
2351
+ enum: [
2352
+ 'none',
2353
+ 'submitted',
2354
+ 'verified'
2355
+ ]
2260
2356
  }
2261
2357
  },
2262
2358
  required: [
2263
2359
  'id',
2360
+ 'type',
2264
2361
  'date_created',
2265
2362
  'quota',
2266
- 'status'
2363
+ 'status',
2364
+ 'verification'
2267
2365
  ],
2268
2366
  additionalProperties: false
2269
2367
  };
@@ -2272,28 +2370,23 @@ export const PaymentMethodSchema = {
2272
2370
  properties: {
2273
2371
  id: {
2274
2372
  type: 'string',
2275
- format: 'uuid',
2276
- description: 'Unique identifier of the organization. UUID v4 string in canonical form.',
2277
- example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
2278
- },
2279
- setup: {
2280
- type: 'boolean',
2281
- description: 'Whether organization payment method was set up and ready to use for payments.',
2282
- example: true
2373
+ description: 'Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.',
2374
+ example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
2283
2375
  },
2284
2376
  type: {
2285
2377
  type: 'string',
2286
- nullable: true,
2287
- description: 'Payment method type type. Only `card` payments supported at the moment.',
2378
+ description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
2288
2379
  example: 'card',
2289
2380
  enum: [
2290
- 'card'
2381
+ 'card',
2382
+ 'sepa_debit',
2383
+ 'bank_transfer'
2291
2384
  ]
2292
2385
  },
2293
2386
  last4: {
2294
2387
  type: 'string',
2295
2388
  nullable: true,
2296
- description: 'Last 4 digits of the payment card number.',
2389
+ description: 'Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.',
2297
2390
  example: '4242'
2298
2391
  },
2299
2392
  exp_month: {
@@ -2301,42 +2394,56 @@ export const PaymentMethodSchema = {
2301
2394
  minimum: 1,
2302
2395
  maximum: 12,
2303
2396
  nullable: true,
2304
- description: 'Two-digit number representing the card\'s expiration month.',
2305
- example: '12'
2397
+ description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
2398
+ example: 12
2306
2399
  },
2307
2400
  exp_year: {
2308
2401
  type: 'integer',
2309
- minimum: 2024,
2310
2402
  nullable: true,
2311
- description: 'Four-digit number representing the card\'s expiration year.',
2312
- example: '2028'
2403
+ description: 'Four-digit number representing the card\'s expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.',
2404
+ example: 2028
2313
2405
  },
2314
2406
  brand: {
2315
2407
  type: 'string',
2316
2408
  nullable: true,
2317
- description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
2318
- example: 'visa',
2319
- enum: [
2320
- 'amex',
2321
- 'diners',
2322
- 'discover',
2323
- 'eftpos_au',
2324
- 'jcb',
2325
- 'mastercard',
2326
- 'unionpay',
2327
- 'visa',
2328
- 'unknown'
2329
- ]
2409
+ description: 'Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.',
2410
+ example: 'visa'
2411
+ },
2412
+ iban: {
2413
+ type: 'string',
2414
+ nullable: true,
2415
+ description: 'Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet\'s virtual receiving account, shown in full so the customer can pay into it.',
2416
+ example: 'DE11243015658023127510'
2417
+ },
2418
+ bic: {
2419
+ type: 'string',
2420
+ nullable: true,
2421
+ description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
2422
+ example: 'SOGEDEFFXXX'
2423
+ },
2424
+ account_holder_name: {
2425
+ type: 'string',
2426
+ nullable: true,
2427
+ description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
2428
+ example: 'Cloudfleet GmbH'
2429
+ },
2430
+ is_default: {
2431
+ type: 'boolean',
2432
+ description: 'Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).',
2433
+ example: true
2330
2434
  }
2331
2435
  },
2332
2436
  required: [
2333
2437
  'id',
2334
- 'setup',
2335
2438
  'type',
2336
2439
  'last4',
2337
2440
  'exp_month',
2338
2441
  'exp_year',
2339
- 'brand'
2442
+ 'brand',
2443
+ 'iban',
2444
+ 'bic',
2445
+ 'account_holder_name',
2446
+ 'is_default'
2340
2447
  ],
2341
2448
  additionalProperties: false
2342
2449
  };
@@ -3473,24 +3580,6 @@ export const UserCreateInputSchema = {
3473
3580
  type: 'string',
3474
3581
  minLength: 8,
3475
3582
  description: 'User password. Must be at least 8 characters long.'
3476
- },
3477
- status: {
3478
- type: 'string',
3479
- description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
3480
- example: 'active',
3481
- enum: [
3482
- 'active',
3483
- 'inactive'
3484
- ]
3485
- },
3486
- role: {
3487
- type: 'string',
3488
- description: 'User role. Can be \'Administrator\', \'User\'.',
3489
- example: 'User',
3490
- enum: [
3491
- 'Administrator',
3492
- 'User'
3493
- ]
3494
3583
  }
3495
3584
  },
3496
3585
  required: [