@sixb/client 0.1.7 → 0.1.8

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 (59) hide show
  1. package/dist/api.d.ts +5 -0
  2. package/dist/api.d.ts.map +1 -1
  3. package/dist/browser.d.ts +18 -1
  4. package/dist/browser.d.ts.map +1 -1
  5. package/dist/browser.js +180 -35
  6. package/dist/browser.js.map +3 -3
  7. package/dist/{chunk-dcebhkmz.js → chunk-0g4bg41z.js} +25 -5
  8. package/dist/chunk-0g4bg41z.js.map +17 -0
  9. package/dist/chunk-3gvmb0w6.js +23 -0
  10. package/dist/chunk-3gvmb0w6.js.map +10 -0
  11. package/dist/{chunk-h80qj1f8.js → chunk-cmfd585n.js} +17 -2
  12. package/dist/chunk-cmfd585n.js.map +10 -0
  13. package/dist/{chunk-r8p88mbg.js → chunk-n4160ht2.js} +103 -21
  14. package/dist/chunk-n4160ht2.js.map +19 -0
  15. package/dist/{chunk-p0xrjaz6.js → chunk-se1tydhh.js} +2 -2
  16. package/dist/{chunk-b3bfdm80.js → chunk-v8q8185t.js} +61 -6
  17. package/dist/chunk-v8q8185t.js.map +10 -0
  18. package/dist/{chunk-m4by7m5r.js → chunk-x6pk2xhn.js} +21 -4
  19. package/dist/chunk-x6pk2xhn.js.map +12 -0
  20. package/dist/client-authority.d.ts +6 -0
  21. package/dist/client-authority.d.ts.map +1 -0
  22. package/dist/events-builder.d.ts.map +1 -1
  23. package/dist/generated/@tanstack/react-query.gen.d.ts +395 -126
  24. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/generated/index.d.ts +2 -2
  26. package/dist/generated/index.d.ts.map +1 -1
  27. package/dist/generated/sdk.gen.d.ts +25 -1
  28. package/dist/generated/sdk.gen.d.ts.map +1 -1
  29. package/dist/generated/types.gen.d.ts +362 -3
  30. package/dist/generated/types.gen.d.ts.map +1 -1
  31. package/dist/hooks.js +120 -6
  32. package/dist/hooks.js.map +3 -3
  33. package/dist/index.js +21 -6
  34. package/dist/index.js.map +1 -1
  35. package/dist/logs-builder.d.ts.map +1 -1
  36. package/dist/logs.js +5 -4
  37. package/dist/logs.js.map +1 -1
  38. package/dist/models.js +14 -2
  39. package/dist/models.js.map +1 -1
  40. package/dist/query.js +5 -4
  41. package/dist/query.js.map +1 -1
  42. package/dist/ws-socket.d.ts.map +1 -1
  43. package/package.json +2 -2
  44. package/src/api.ts +92 -3
  45. package/src/browser.ts +257 -48
  46. package/src/client-authority.ts +31 -0
  47. package/src/events-builder.ts +18 -1
  48. package/src/generated/@tanstack/react-query.gen.ts +229 -0
  49. package/src/generated/index.ts +36 -0
  50. package/src/generated/sdk.gen.ts +178 -12
  51. package/src/generated/types.gen.ts +402 -3
  52. package/src/logs-builder.ts +14 -1
  53. package/src/ws-socket.ts +11 -0
  54. package/dist/chunk-b3bfdm80.js.map +0 -10
  55. package/dist/chunk-dcebhkmz.js.map +0 -17
  56. package/dist/chunk-h80qj1f8.js.map +0 -10
  57. package/dist/chunk-m4by7m5r.js.map +0 -12
  58. package/dist/chunk-r8p88mbg.js.map +0 -19
  59. /package/dist/{chunk-p0xrjaz6.js.map → chunk-se1tydhh.js.map} +0 -0
@@ -3557,6 +3557,7 @@ export type ListDatasetsResponses = {
3557
3557
  id: string;
3558
3558
  description?: string;
3559
3559
  primaryKey?: string | Array<string>;
3560
+ sequenceBy?: string;
3560
3561
  partitionBy?: Array<string>;
3561
3562
  schema: {
3562
3563
  columns: Array<{
@@ -3616,6 +3617,7 @@ export type GetDatasetResponses = {
3616
3617
  id: string;
3617
3618
  description?: string;
3618
3619
  primaryKey?: string | Array<string>;
3620
+ sequenceBy?: string;
3619
3621
  partitionBy?: Array<string>;
3620
3622
  schema: {
3621
3623
  columns: Array<{
@@ -3688,7 +3690,7 @@ export type ListDatasetVersionsResponses = {
3688
3690
  }>;
3689
3691
  };
3690
3692
  producer?: {
3691
- kind: "sync" | "pipeline";
3693
+ kind: "sync" | "pipeline" | "ingest";
3692
3694
  id?: string;
3693
3695
  runId?: string;
3694
3696
  };
@@ -3749,7 +3751,7 @@ export type GetDatasetVersionResponses = {
3749
3751
  }>;
3750
3752
  };
3751
3753
  producer?: {
3752
- kind: "sync" | "pipeline";
3754
+ kind: "sync" | "pipeline" | "ingest";
3753
3755
  id?: string;
3754
3756
  runId?: string;
3755
3757
  };
@@ -3815,7 +3817,7 @@ export type ListDatasetRowsResponses = {
3815
3817
  }>;
3816
3818
  };
3817
3819
  producer?: {
3818
- kind: "sync" | "pipeline";
3820
+ kind: "sync" | "pipeline" | "ingest";
3819
3821
  id?: string;
3820
3822
  runId?: string;
3821
3823
  };
@@ -3861,6 +3863,7 @@ export type ListSyncsResponses = {
3861
3863
  id: string;
3862
3864
  description?: string;
3863
3865
  primaryKey?: string | Array<string>;
3866
+ sequenceBy?: string;
3864
3867
  partitionBy?: Array<string>;
3865
3868
  schema: {
3866
3869
  columns: Array<{
@@ -3943,6 +3946,7 @@ export type GetSyncResponses = {
3943
3946
  id: string;
3944
3947
  description?: string;
3945
3948
  primaryKey?: string | Array<string>;
3949
+ sequenceBy?: string;
3946
3950
  partitionBy?: Array<string>;
3947
3951
  schema: {
3948
3952
  columns: Array<{
@@ -4141,6 +4145,7 @@ export type ListPipelinesResponses = {
4141
4145
  id: string;
4142
4146
  description?: string;
4143
4147
  primaryKey?: string | Array<string>;
4148
+ sequenceBy?: string;
4144
4149
  partitionBy?: Array<string>;
4145
4150
  schema: {
4146
4151
  columns: Array<{
@@ -4155,6 +4160,7 @@ export type ListPipelinesResponses = {
4155
4160
  id: string;
4156
4161
  description?: string;
4157
4162
  primaryKey?: string | Array<string>;
4163
+ sequenceBy?: string;
4158
4164
  partitionBy?: Array<string>;
4159
4165
  schema: {
4160
4166
  columns: Array<{
@@ -4242,6 +4248,7 @@ export type GetPipelineResponses = {
4242
4248
  id: string;
4243
4249
  description?: string;
4244
4250
  primaryKey?: string | Array<string>;
4251
+ sequenceBy?: string;
4245
4252
  partitionBy?: Array<string>;
4246
4253
  schema: {
4247
4254
  columns: Array<{
@@ -4256,6 +4263,7 @@ export type GetPipelineResponses = {
4256
4263
  id: string;
4257
4264
  description?: string;
4258
4265
  primaryKey?: string | Array<string>;
4266
+ sequenceBy?: string;
4259
4267
  partitionBy?: Array<string>;
4260
4268
  schema: {
4261
4269
  columns: Array<{
@@ -6072,6 +6080,357 @@ export type ListRuleStatesResponses = {
6072
6080
  };
6073
6081
  };
6074
6082
  export type ListRuleStatesResponse = ListRuleStatesResponses[keyof ListRuleStatesResponses];
6083
+ export type ListSharedAccessGrantsData = {
6084
+ body?: never;
6085
+ path?: never;
6086
+ query: {
6087
+ definitionId: string;
6088
+ primaryId?: string;
6089
+ includeRevoked?: boolean;
6090
+ includeExpired?: boolean;
6091
+ limit?: number;
6092
+ offset?: number;
6093
+ };
6094
+ url: "/api/share-grants";
6095
+ };
6096
+ export type ListSharedAccessGrantsErrors = {
6097
+ /**
6098
+ * Response for status 400
6099
+ */
6100
+ 400: {
6101
+ error: string;
6102
+ };
6103
+ /**
6104
+ * Response for status 401
6105
+ */
6106
+ 401: {
6107
+ error: string;
6108
+ };
6109
+ /**
6110
+ * Response for status 403
6111
+ */
6112
+ 403: {
6113
+ error: string;
6114
+ };
6115
+ /**
6116
+ * Response for status 404
6117
+ */
6118
+ 404: {
6119
+ error: string;
6120
+ };
6121
+ /**
6122
+ * Response for status 500
6123
+ */
6124
+ 500: {
6125
+ error: string;
6126
+ };
6127
+ /**
6128
+ * Response for status 501
6129
+ */
6130
+ 501: {
6131
+ error: string;
6132
+ };
6133
+ };
6134
+ export type ListSharedAccessGrantsError = ListSharedAccessGrantsErrors[keyof ListSharedAccessGrantsErrors];
6135
+ export type ListSharedAccessGrantsResponses = {
6136
+ /**
6137
+ * Response for status 200
6138
+ */
6139
+ 200: {
6140
+ grants: Array<{
6141
+ id: string;
6142
+ definitionId: string;
6143
+ target: {
6144
+ objectTypeId: string;
6145
+ primaryId: string;
6146
+ };
6147
+ issuedBy: {
6148
+ type: "user" | "serviceAccount";
6149
+ id: string;
6150
+ };
6151
+ destinationPath: string;
6152
+ createdAt: string;
6153
+ expiresAt: string;
6154
+ revokedAt?: string;
6155
+ revokedBy?: {
6156
+ type: "user" | "serviceAccount" | "system";
6157
+ id: string;
6158
+ };
6159
+ }>;
6160
+ hasMore: boolean;
6161
+ total: number;
6162
+ };
6163
+ };
6164
+ export type ListSharedAccessGrantsResponse = ListSharedAccessGrantsResponses[keyof ListSharedAccessGrantsResponses];
6165
+ export type IssueSharedAccessGrantData = {
6166
+ body: {
6167
+ definitionId: string;
6168
+ target: {
6169
+ objectTypeId: string;
6170
+ primaryId: string;
6171
+ };
6172
+ destinationPath: string;
6173
+ expiresAt: string;
6174
+ };
6175
+ path?: never;
6176
+ query?: never;
6177
+ url: "/api/share-grants";
6178
+ };
6179
+ export type IssueSharedAccessGrantErrors = {
6180
+ /**
6181
+ * Response for status 400
6182
+ */
6183
+ 400: {
6184
+ error: string;
6185
+ };
6186
+ /**
6187
+ * Response for status 401
6188
+ */
6189
+ 401: {
6190
+ error: string;
6191
+ };
6192
+ /**
6193
+ * Response for status 403
6194
+ */
6195
+ 403: {
6196
+ error: string;
6197
+ };
6198
+ /**
6199
+ * Response for status 404
6200
+ */
6201
+ 404: {
6202
+ error: string;
6203
+ };
6204
+ /**
6205
+ * Response for status 500
6206
+ */
6207
+ 500: {
6208
+ error: string;
6209
+ };
6210
+ /**
6211
+ * Response for status 501
6212
+ */
6213
+ 501: {
6214
+ error: string;
6215
+ };
6216
+ };
6217
+ export type IssueSharedAccessGrantError = IssueSharedAccessGrantErrors[keyof IssueSharedAccessGrantErrors];
6218
+ export type IssueSharedAccessGrantResponses = {
6219
+ /**
6220
+ * Response for status 201
6221
+ */
6222
+ 201: {
6223
+ grant: {
6224
+ id: string;
6225
+ definitionId: string;
6226
+ target: {
6227
+ objectTypeId: string;
6228
+ primaryId: string;
6229
+ };
6230
+ issuedBy: {
6231
+ type: "user" | "serviceAccount";
6232
+ id: string;
6233
+ };
6234
+ destinationPath: string;
6235
+ createdAt: string;
6236
+ expiresAt: string;
6237
+ revokedAt?: string;
6238
+ revokedBy?: {
6239
+ type: "user" | "serviceAccount" | "system";
6240
+ id: string;
6241
+ };
6242
+ };
6243
+ url: string;
6244
+ };
6245
+ };
6246
+ export type IssueSharedAccessGrantResponse = IssueSharedAccessGrantResponses[keyof IssueSharedAccessGrantResponses];
6247
+ export type RevokeSharedAccessGrantData = {
6248
+ body?: never;
6249
+ path: {
6250
+ grantId: string;
6251
+ };
6252
+ query?: never;
6253
+ url: "/api/share-grants/{grantId}";
6254
+ };
6255
+ export type RevokeSharedAccessGrantErrors = {
6256
+ /**
6257
+ * Response for status 400
6258
+ */
6259
+ 400: {
6260
+ error: string;
6261
+ };
6262
+ /**
6263
+ * Response for status 401
6264
+ */
6265
+ 401: {
6266
+ error: string;
6267
+ };
6268
+ /**
6269
+ * Response for status 403
6270
+ */
6271
+ 403: {
6272
+ error: string;
6273
+ };
6274
+ /**
6275
+ * Response for status 404
6276
+ */
6277
+ 404: {
6278
+ error: string;
6279
+ };
6280
+ /**
6281
+ * Response for status 500
6282
+ */
6283
+ 500: {
6284
+ error: string;
6285
+ };
6286
+ /**
6287
+ * Response for status 501
6288
+ */
6289
+ 501: {
6290
+ error: string;
6291
+ };
6292
+ };
6293
+ export type RevokeSharedAccessGrantError = RevokeSharedAccessGrantErrors[keyof RevokeSharedAccessGrantErrors];
6294
+ export type RevokeSharedAccessGrantResponses = {
6295
+ /**
6296
+ * Response for status 200
6297
+ */
6298
+ 200: {
6299
+ grant: {
6300
+ id: string;
6301
+ definitionId: string;
6302
+ target: {
6303
+ objectTypeId: string;
6304
+ primaryId: string;
6305
+ };
6306
+ issuedBy: {
6307
+ type: "user" | "serviceAccount";
6308
+ id: string;
6309
+ };
6310
+ destinationPath: string;
6311
+ createdAt: string;
6312
+ expiresAt: string;
6313
+ revokedAt?: string;
6314
+ revokedBy?: {
6315
+ type: "user" | "serviceAccount" | "system";
6316
+ id: string;
6317
+ };
6318
+ };
6319
+ };
6320
+ };
6321
+ export type RevokeSharedAccessGrantResponse = RevokeSharedAccessGrantResponses[keyof RevokeSharedAccessGrantResponses];
6322
+ export type ExchangeSharedAccessData = {
6323
+ body: {
6324
+ secret: string;
6325
+ };
6326
+ path: {
6327
+ grantId: string;
6328
+ };
6329
+ query?: never;
6330
+ url: "/api/shared-access/{grantId}/exchange";
6331
+ };
6332
+ export type ExchangeSharedAccessErrors = {
6333
+ /**
6334
+ * Response for status 401
6335
+ */
6336
+ 401: {
6337
+ error: string;
6338
+ };
6339
+ /**
6340
+ * Response for status 503
6341
+ */
6342
+ 503: {
6343
+ error: string;
6344
+ };
6345
+ };
6346
+ export type ExchangeSharedAccessError = ExchangeSharedAccessErrors[keyof ExchangeSharedAccessErrors];
6347
+ export type ExchangeSharedAccessResponses = {
6348
+ /**
6349
+ * Response for status 200
6350
+ */
6351
+ 200: {
6352
+ grantId: string;
6353
+ destinationPath: string;
6354
+ expiresAt: string;
6355
+ absoluteExpiresAt: string;
6356
+ csrfToken: string;
6357
+ };
6358
+ };
6359
+ export type ExchangeSharedAccessResponse = ExchangeSharedAccessResponses[keyof ExchangeSharedAccessResponses];
6360
+ export type GetSharedAccessSessionData = {
6361
+ body?: never;
6362
+ path: {
6363
+ grantId: string;
6364
+ };
6365
+ query?: never;
6366
+ url: "/api/shared-access/{grantId}/session";
6367
+ };
6368
+ export type GetSharedAccessSessionErrors = {
6369
+ /**
6370
+ * Response for status 401
6371
+ */
6372
+ 401: {
6373
+ error: string;
6374
+ };
6375
+ /**
6376
+ * Response for status 503
6377
+ */
6378
+ 503: {
6379
+ error: string;
6380
+ };
6381
+ };
6382
+ export type GetSharedAccessSessionError = GetSharedAccessSessionErrors[keyof GetSharedAccessSessionErrors];
6383
+ export type GetSharedAccessSessionResponses = {
6384
+ /**
6385
+ * Response for status 200
6386
+ */
6387
+ 200: {
6388
+ grantId: string;
6389
+ destinationPath: string;
6390
+ expiresAt: string;
6391
+ absoluteExpiresAt: string;
6392
+ csrfToken: string;
6393
+ };
6394
+ };
6395
+ export type GetSharedAccessSessionResponse = GetSharedAccessSessionResponses[keyof GetSharedAccessSessionResponses];
6396
+ export type SignOutSharedAccessData = {
6397
+ body?: never;
6398
+ path: {
6399
+ grantId: string;
6400
+ };
6401
+ query?: never;
6402
+ url: "/api/shared-access/{grantId}/sign-out";
6403
+ };
6404
+ export type SignOutSharedAccessErrors = {
6405
+ /**
6406
+ * Response for status 401
6407
+ */
6408
+ 401: {
6409
+ error: string;
6410
+ };
6411
+ /**
6412
+ * Response for status 403
6413
+ */
6414
+ 403: {
6415
+ error: string;
6416
+ };
6417
+ /**
6418
+ * Response for status 503
6419
+ */
6420
+ 503: {
6421
+ error: string;
6422
+ };
6423
+ };
6424
+ export type SignOutSharedAccessError = SignOutSharedAccessErrors[keyof SignOutSharedAccessErrors];
6425
+ export type SignOutSharedAccessResponses = {
6426
+ /**
6427
+ * Response for status 200
6428
+ */
6429
+ 200: {
6430
+ signedOut: true;
6431
+ };
6432
+ };
6433
+ export type SignOutSharedAccessResponse = SignOutSharedAccessResponses[keyof SignOutSharedAccessResponses];
6075
6434
  export type ListObjectTypesData = {
6076
6435
  body?: never;
6077
6436
  path?: never;