@appwrite.io/console 15.8.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/iife/sdk.js CHANGED
@@ -4424,6 +4424,7 @@
4424
4424
  endpointRealtime: '',
4425
4425
  project: '',
4426
4426
  key: '',
4427
+ organization: '',
4427
4428
  jwt: '',
4428
4429
  bearer: '',
4429
4430
  locale: '',
@@ -4445,8 +4446,8 @@
4445
4446
  'x-sdk-name': 'Console',
4446
4447
  'x-sdk-platform': 'console',
4447
4448
  'x-sdk-language': 'web',
4448
- 'x-sdk-version': '15.8.0',
4449
- 'X-Appwrite-Response-Format': '1.9.5',
4449
+ 'x-sdk-version': '16.0.0',
4450
+ 'X-Appwrite-Response-Format': '1.9.6',
4450
4451
  };
4451
4452
  this.realtime = {
4452
4453
  socket: undefined,
@@ -4755,6 +4756,20 @@
4755
4756
  this.config.key = value;
4756
4757
  return this;
4757
4758
  }
4759
+ /**
4760
+ * Set Organization
4761
+ *
4762
+ * Your organization ID
4763
+ *
4764
+ * @param value string
4765
+ *
4766
+ * @return {this}
4767
+ */
4768
+ setOrganization(value) {
4769
+ this.headers['X-Appwrite-Organization'] = value;
4770
+ this.config.organization = value;
4771
+ return this;
4772
+ }
4758
4773
  /**
4759
4774
  * Set JWT
4760
4775
  *
@@ -7706,6 +7721,200 @@
7706
7721
  }
7707
7722
  }
7708
7723
 
7724
+ class Affiliates {
7725
+ constructor(client) {
7726
+ this.client = client;
7727
+ }
7728
+ listLinks(paramsOrFirst) {
7729
+ let params;
7730
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7731
+ params = (paramsOrFirst || {});
7732
+ }
7733
+ else {
7734
+ params = {
7735
+ queries: paramsOrFirst
7736
+ };
7737
+ }
7738
+ const queries = params.queries;
7739
+ const apiPath = '/affiliates/links';
7740
+ const payload = {};
7741
+ if (typeof queries !== 'undefined') {
7742
+ payload['queries'] = queries;
7743
+ }
7744
+ const uri = new URL(this.client.config.endpoint + apiPath);
7745
+ const apiHeaders = {
7746
+ 'X-Appwrite-Project': this.client.config.project,
7747
+ 'accept': 'application/json',
7748
+ };
7749
+ return this.client.call('get', uri, apiHeaders, payload);
7750
+ }
7751
+ createLink(paramsOrFirst, ...rest) {
7752
+ let params;
7753
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7754
+ params = (paramsOrFirst || {});
7755
+ }
7756
+ else {
7757
+ params = {
7758
+ linkId: paramsOrFirst,
7759
+ name: rest[0]
7760
+ };
7761
+ }
7762
+ const linkId = params.linkId;
7763
+ const name = params.name;
7764
+ if (typeof linkId === 'undefined') {
7765
+ throw new AppwriteException('Missing required parameter: "linkId"');
7766
+ }
7767
+ const apiPath = '/affiliates/links';
7768
+ const payload = {};
7769
+ if (typeof linkId !== 'undefined') {
7770
+ payload['linkId'] = linkId;
7771
+ }
7772
+ if (typeof name !== 'undefined') {
7773
+ payload['name'] = name;
7774
+ }
7775
+ const uri = new URL(this.client.config.endpoint + apiPath);
7776
+ const apiHeaders = {
7777
+ 'X-Appwrite-Project': this.client.config.project,
7778
+ 'content-type': 'application/json',
7779
+ 'accept': 'application/json',
7780
+ };
7781
+ return this.client.call('post', uri, apiHeaders, payload);
7782
+ }
7783
+ getLink(paramsOrFirst) {
7784
+ let params;
7785
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7786
+ params = (paramsOrFirst || {});
7787
+ }
7788
+ else {
7789
+ params = {
7790
+ linkId: paramsOrFirst
7791
+ };
7792
+ }
7793
+ const linkId = params.linkId;
7794
+ if (typeof linkId === 'undefined') {
7795
+ throw new AppwriteException('Missing required parameter: "linkId"');
7796
+ }
7797
+ const apiPath = '/affiliates/links/{linkId}'.replace('{linkId}', encodeURIComponent(String(linkId)));
7798
+ const payload = {};
7799
+ const uri = new URL(this.client.config.endpoint + apiPath);
7800
+ const apiHeaders = {
7801
+ 'X-Appwrite-Project': this.client.config.project,
7802
+ 'accept': 'application/json',
7803
+ };
7804
+ return this.client.call('get', uri, apiHeaders, payload);
7805
+ }
7806
+ deleteLink(paramsOrFirst) {
7807
+ let params;
7808
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7809
+ params = (paramsOrFirst || {});
7810
+ }
7811
+ else {
7812
+ params = {
7813
+ linkId: paramsOrFirst
7814
+ };
7815
+ }
7816
+ const linkId = params.linkId;
7817
+ if (typeof linkId === 'undefined') {
7818
+ throw new AppwriteException('Missing required parameter: "linkId"');
7819
+ }
7820
+ const apiPath = '/affiliates/links/{linkId}'.replace('{linkId}', encodeURIComponent(String(linkId)));
7821
+ const payload = {};
7822
+ const uri = new URL(this.client.config.endpoint + apiPath);
7823
+ const apiHeaders = {
7824
+ 'X-Appwrite-Project': this.client.config.project,
7825
+ 'content-type': 'application/json',
7826
+ 'accept': 'application/json',
7827
+ };
7828
+ return this.client.call('delete', uri, apiHeaders, payload);
7829
+ }
7830
+ listReferrals(paramsOrFirst) {
7831
+ let params;
7832
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7833
+ params = (paramsOrFirst || {});
7834
+ }
7835
+ else {
7836
+ params = {
7837
+ queries: paramsOrFirst
7838
+ };
7839
+ }
7840
+ const queries = params.queries;
7841
+ const apiPath = '/affiliates/referrals';
7842
+ const payload = {};
7843
+ if (typeof queries !== 'undefined') {
7844
+ payload['queries'] = queries;
7845
+ }
7846
+ const uri = new URL(this.client.config.endpoint + apiPath);
7847
+ const apiHeaders = {
7848
+ 'X-Appwrite-Project': this.client.config.project,
7849
+ 'accept': 'application/json',
7850
+ };
7851
+ return this.client.call('get', uri, apiHeaders, payload);
7852
+ }
7853
+ listRewards(paramsOrFirst) {
7854
+ let params;
7855
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7856
+ params = (paramsOrFirst || {});
7857
+ }
7858
+ else {
7859
+ params = {
7860
+ queries: paramsOrFirst
7861
+ };
7862
+ }
7863
+ const queries = params.queries;
7864
+ const apiPath = '/affiliates/rewards';
7865
+ const payload = {};
7866
+ if (typeof queries !== 'undefined') {
7867
+ payload['queries'] = queries;
7868
+ }
7869
+ const uri = new URL(this.client.config.endpoint + apiPath);
7870
+ const apiHeaders = {
7871
+ 'X-Appwrite-Project': this.client.config.project,
7872
+ 'accept': 'application/json',
7873
+ };
7874
+ return this.client.call('get', uri, apiHeaders, payload);
7875
+ }
7876
+ updateReward(paramsOrFirst, ...rest) {
7877
+ let params;
7878
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
7879
+ params = (paramsOrFirst || {});
7880
+ }
7881
+ else {
7882
+ params = {
7883
+ rewardId: paramsOrFirst,
7884
+ status: rest[0],
7885
+ organizationId: rest[1]
7886
+ };
7887
+ }
7888
+ const rewardId = params.rewardId;
7889
+ const status = params.status;
7890
+ const organizationId = params.organizationId;
7891
+ if (typeof rewardId === 'undefined') {
7892
+ throw new AppwriteException('Missing required parameter: "rewardId"');
7893
+ }
7894
+ if (typeof status === 'undefined') {
7895
+ throw new AppwriteException('Missing required parameter: "status"');
7896
+ }
7897
+ if (typeof organizationId === 'undefined') {
7898
+ throw new AppwriteException('Missing required parameter: "organizationId"');
7899
+ }
7900
+ const apiPath = '/affiliates/rewards/{rewardId}'.replace('{rewardId}', encodeURIComponent(String(rewardId)));
7901
+ const payload = {};
7902
+ if (typeof status !== 'undefined') {
7903
+ payload['status'] = status;
7904
+ }
7905
+ if (typeof organizationId !== 'undefined') {
7906
+ payload['organizationId'] = organizationId;
7907
+ }
7908
+ const uri = new URL(this.client.config.endpoint + apiPath);
7909
+ const apiHeaders = {
7910
+ 'X-Appwrite-Project': this.client.config.project,
7911
+ 'content-type': 'application/json',
7912
+ 'accept': 'application/json',
7913
+ };
7914
+ return this.client.call('patch', uri, apiHeaders, payload);
7915
+ }
7916
+ }
7917
+
7709
7918
  class Apps {
7710
7919
  constructor(client) {
7711
7920
  this.client = client;
@@ -16839,6 +17048,44 @@
16839
17048
  }
16840
17049
  }
16841
17050
 
17051
+ class Embeddings {
17052
+ constructor(client) {
17053
+ this.client = client;
17054
+ }
17055
+ createTextEmbeddings(paramsOrFirst, ...rest) {
17056
+ let params;
17057
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
17058
+ params = (paramsOrFirst || {});
17059
+ }
17060
+ else {
17061
+ params = {
17062
+ texts: paramsOrFirst,
17063
+ model: rest[0]
17064
+ };
17065
+ }
17066
+ const texts = params.texts;
17067
+ const model = params.model;
17068
+ if (typeof texts === 'undefined') {
17069
+ throw new AppwriteException('Missing required parameter: "texts"');
17070
+ }
17071
+ const apiPath = '/embeddings/text';
17072
+ const payload = {};
17073
+ if (typeof texts !== 'undefined') {
17074
+ payload['texts'] = texts;
17075
+ }
17076
+ if (typeof model !== 'undefined') {
17077
+ payload['model'] = model;
17078
+ }
17079
+ const uri = new URL(this.client.config.endpoint + apiPath);
17080
+ const apiHeaders = {
17081
+ 'X-Appwrite-Project': this.client.config.project,
17082
+ 'content-type': 'application/json',
17083
+ 'accept': 'application/json',
17084
+ };
17085
+ return this.client.call('post', uri, apiHeaders, payload);
17086
+ }
17087
+ }
17088
+
16842
17089
  class Functions {
16843
17090
  constructor(client) {
16844
17091
  this.client = client;
@@ -33334,6 +33581,46 @@
33334
33581
  constructor(client) {
33335
33582
  this.client = client;
33336
33583
  }
33584
+ createInvalidation(paramsOrFirst, ...rest) {
33585
+ let params;
33586
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
33587
+ params = (paramsOrFirst || {});
33588
+ }
33589
+ else {
33590
+ params = {
33591
+ domain: paramsOrFirst,
33592
+ type: rest[0],
33593
+ reference: rest[1]
33594
+ };
33595
+ }
33596
+ const domain = params.domain;
33597
+ const type = params.type;
33598
+ const reference = params.reference;
33599
+ if (typeof domain === 'undefined') {
33600
+ throw new AppwriteException('Missing required parameter: "domain"');
33601
+ }
33602
+ if (typeof type === 'undefined') {
33603
+ throw new AppwriteException('Missing required parameter: "type"');
33604
+ }
33605
+ const apiPath = '/proxy/invalidations';
33606
+ const payload = {};
33607
+ if (typeof domain !== 'undefined') {
33608
+ payload['domain'] = domain;
33609
+ }
33610
+ if (typeof type !== 'undefined') {
33611
+ payload['type'] = type;
33612
+ }
33613
+ if (typeof reference !== 'undefined') {
33614
+ payload['reference'] = reference;
33615
+ }
33616
+ const uri = new URL(this.client.config.endpoint + apiPath);
33617
+ const apiHeaders = {
33618
+ 'X-Appwrite-Project': this.client.config.project,
33619
+ 'content-type': 'application/json',
33620
+ 'accept': 'application/json',
33621
+ };
33622
+ return this.client.call('post', uri, apiHeaders, payload);
33623
+ }
33337
33624
  listRules(paramsOrFirst, ...rest) {
33338
33625
  let params;
33339
33626
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -42302,38 +42589,6 @@
42302
42589
  };
42303
42590
  return this.client.call('post', uri, apiHeaders, payload);
42304
42591
  }
42305
- createTextEmbeddings(paramsOrFirst, ...rest) {
42306
- let params;
42307
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
42308
- params = (paramsOrFirst || {});
42309
- }
42310
- else {
42311
- params = {
42312
- texts: paramsOrFirst,
42313
- model: rest[0]
42314
- };
42315
- }
42316
- const texts = params.texts;
42317
- const model = params.model;
42318
- if (typeof texts === 'undefined') {
42319
- throw new AppwriteException('Missing required parameter: "texts"');
42320
- }
42321
- const apiPath = '/vectorsdb/embeddings/text';
42322
- const payload = {};
42323
- if (typeof texts !== 'undefined') {
42324
- payload['texts'] = texts;
42325
- }
42326
- if (typeof model !== 'undefined') {
42327
- payload['model'] = model;
42328
- }
42329
- const uri = new URL(this.client.config.endpoint + apiPath);
42330
- const apiHeaders = {
42331
- 'X-Appwrite-Project': this.client.config.project,
42332
- 'content-type': 'application/json',
42333
- 'accept': 'application/json',
42334
- };
42335
- return this.client.call('post', uri, apiHeaders, payload);
42336
- }
42337
42592
  /**
42338
42593
  * List the dedicated database specifications available on the current plan. Each specification reports its resource limits, pricing, and whether it is enabled for the organization.
42339
42594
  *
@@ -46628,6 +46883,9 @@
46628
46883
  QuerySuggestionResource["ShInstallations"] = "sh_installations";
46629
46884
  QuerySuggestionResource["MigrationDatabases"] = "migrationdatabases";
46630
46885
  QuerySuggestionResource["MigrationProjects"] = "migrationprojects";
46886
+ QuerySuggestionResource["AffiliateLinks"] = "affiliatelinks";
46887
+ QuerySuggestionResource["AffiliateReferrals"] = "affiliatereferrals";
46888
+ QuerySuggestionResource["AffiliateRewards"] = "affiliaterewards";
46631
46889
  QuerySuggestionResource["Apps"] = "apps";
46632
46890
  QuerySuggestionResource["AppSecrets"] = "appsecrets";
46633
46891
  QuerySuggestionResource["AppInstallations"] = "appinstallations";
@@ -46852,6 +47110,14 @@
46852
47110
  DomainSuggestionType["Suggestion"] = "suggestion";
46853
47111
  })(exports.DomainSuggestionType || (exports.DomainSuggestionType = {}));
46854
47112
 
47113
+ exports.EmbeddingModel = void 0;
47114
+ (function (EmbeddingModel) {
47115
+ EmbeddingModel["Nomicembedtext"] = "nomic-embed-text";
47116
+ EmbeddingModel["Embeddinggemma"] = "embedding-gemma";
47117
+ EmbeddingModel["Allminilm"] = "all-minilm";
47118
+ EmbeddingModel["Bgesmall"] = "bge-small";
47119
+ })(exports.EmbeddingModel || (exports.EmbeddingModel = {}));
47120
+
46855
47121
  exports.Runtime = void 0;
46856
47122
  (function (Runtime) {
46857
47123
  Runtime["Node145"] = "node-14.5";
@@ -47048,6 +47314,7 @@
47048
47314
  ProjectKeyScopes["WafRulesRead"] = "wafRules.read";
47049
47315
  ProjectKeyScopes["WafRulesWrite"] = "wafRules.write";
47050
47316
  ProjectKeyScopes["EventsRead"] = "events.read";
47317
+ ProjectKeyScopes["ProxyInvalidationsWrite"] = "proxy.invalidations.write";
47051
47318
  ProjectKeyScopes["AppsRead"] = "apps.read";
47052
47319
  ProjectKeyScopes["AppsWrite"] = "apps.write";
47053
47320
  ProjectKeyScopes["Oauth2Read"] = "oauth2.read";
@@ -47433,6 +47700,13 @@
47433
47700
  Status["Active"] = "active";
47434
47701
  })(exports.Status || (exports.Status = {}));
47435
47702
 
47703
+ exports.InvalidationType = void 0;
47704
+ (function (InvalidationType) {
47705
+ InvalidationType["Tag"] = "tag";
47706
+ InvalidationType["Path"] = "path";
47707
+ InvalidationType["All"] = "all";
47708
+ })(exports.InvalidationType || (exports.InvalidationType = {}));
47709
+
47436
47710
  exports.StatusCode = void 0;
47437
47711
  (function (StatusCode) {
47438
47712
  StatusCode["MovedPermanently"] = "301";
@@ -47609,6 +47883,59 @@
47609
47883
  TablesDBIndexType["Spatial"] = "spatial";
47610
47884
  })(exports.TablesDBIndexType || (exports.TablesDBIndexType = {}));
47611
47885
 
47886
+ exports.UsageInterval = void 0;
47887
+ (function (UsageInterval) {
47888
+ UsageInterval["OneMinute"] = "1m";
47889
+ UsageInterval["FifteenMinutes"] = "15m";
47890
+ UsageInterval["ThirtyMinutes"] = "30m";
47891
+ UsageInterval["OneHour"] = "1h";
47892
+ UsageInterval["OneDay"] = "1d";
47893
+ })(exports.UsageInterval || (exports.UsageInterval = {}));
47894
+
47895
+ exports.UsageEventDimension = void 0;
47896
+ (function (UsageEventDimension) {
47897
+ UsageEventDimension["Path"] = "path";
47898
+ UsageEventDimension["Method"] = "method";
47899
+ UsageEventDimension["Status"] = "status";
47900
+ UsageEventDimension["Service"] = "service";
47901
+ UsageEventDimension["ResourceType"] = "resourceType";
47902
+ UsageEventDimension["Country"] = "country";
47903
+ UsageEventDimension["ContinentCode"] = "continentCode";
47904
+ UsageEventDimension["City"] = "city";
47905
+ UsageEventDimension["Region"] = "region";
47906
+ UsageEventDimension["Hostname"] = "hostname";
47907
+ UsageEventDimension["Ip"] = "ip";
47908
+ UsageEventDimension["OsName"] = "osName";
47909
+ UsageEventDimension["ClientType"] = "clientType";
47910
+ UsageEventDimension["ClientName"] = "clientName";
47911
+ UsageEventDimension["DeviceName"] = "deviceName";
47912
+ UsageEventDimension["Sdk"] = "sdk";
47913
+ UsageEventDimension["SdkVersion"] = "sdkVersion";
47914
+ UsageEventDimension["TeamId"] = "teamId";
47915
+ UsageEventDimension["ResourceId"] = "resourceId";
47916
+ })(exports.UsageEventDimension || (exports.UsageEventDimension = {}));
47917
+
47918
+ exports.UsageOrderBy = void 0;
47919
+ (function (UsageOrderBy) {
47920
+ UsageOrderBy["Time"] = "time";
47921
+ UsageOrderBy["Value"] = "value";
47922
+ })(exports.UsageOrderBy || (exports.UsageOrderBy = {}));
47923
+
47924
+ exports.UsageOrderDirection = void 0;
47925
+ (function (UsageOrderDirection) {
47926
+ UsageOrderDirection["Asc"] = "asc";
47927
+ UsageOrderDirection["Desc"] = "desc";
47928
+ })(exports.UsageOrderDirection || (exports.UsageOrderDirection = {}));
47929
+
47930
+ exports.UsageGaugeDimension = void 0;
47931
+ (function (UsageGaugeDimension) {
47932
+ UsageGaugeDimension["ResourceId"] = "resourceId";
47933
+ UsageGaugeDimension["TeamId"] = "teamId";
47934
+ UsageGaugeDimension["Service"] = "service";
47935
+ UsageGaugeDimension["ResourceType"] = "resourceType";
47936
+ UsageGaugeDimension["Ordinal"] = "ordinal";
47937
+ })(exports.UsageGaugeDimension || (exports.UsageGaugeDimension = {}));
47938
+
47612
47939
  exports.PasswordHash = void 0;
47613
47940
  (function (PasswordHash) {
47614
47941
  PasswordHash["Sha1"] = "sha1";
@@ -47637,14 +47964,6 @@
47637
47964
  VCSDetectionType["Framework"] = "framework";
47638
47965
  })(exports.VCSDetectionType || (exports.VCSDetectionType = {}));
47639
47966
 
47640
- exports.EmbeddingModel = void 0;
47641
- (function (EmbeddingModel) {
47642
- EmbeddingModel["Nomicembedtext"] = "nomic-embed-text";
47643
- EmbeddingModel["Embeddinggemma"] = "embedding-gemma";
47644
- EmbeddingModel["Allminilm"] = "all-minilm";
47645
- EmbeddingModel["Bgesmall"] = "bge-small";
47646
- })(exports.EmbeddingModel || (exports.EmbeddingModel = {}));
47647
-
47648
47967
  exports.VectorsDBIndexType = void 0;
47649
47968
  (function (VectorsDBIndexType) {
47650
47969
  VectorsDBIndexType["HnswEuclidean"] = "hnsw_euclidean";
@@ -47832,6 +48151,7 @@
47832
48151
  exports.Account = Account;
47833
48152
  exports.Activities = Activities;
47834
48153
  exports.Advisor = Advisor;
48154
+ exports.Affiliates = Affiliates;
47835
48155
  exports.Apps = Apps;
47836
48156
  exports.AppwriteException = AppwriteException;
47837
48157
  exports.Assistant = Assistant;
@@ -47843,6 +48163,7 @@
47843
48163
  exports.Databases = Databases;
47844
48164
  exports.DocumentsDB = DocumentsDB;
47845
48165
  exports.Domains = Domains;
48166
+ exports.Embeddings = Embeddings;
47846
48167
  exports.Functions = Functions;
47847
48168
  exports.Graphql = Graphql;
47848
48169
  exports.ID = ID;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "15.8.0",
5
+ "version": "16.0.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -40,13 +40,13 @@
40
40
  "@rollup/plugin-typescript": "12.3.0",
41
41
  "@types/json-bigint": "1.0.4",
42
42
  "playwright": "1.56.1",
43
- "rollup": "4.62.3",
43
+ "rollup": "4.62.4",
44
44
  "serve-handler": "6.1.7",
45
45
  "tslib": "2.8.1",
46
46
  "typescript": "5.9.3"
47
47
  },
48
48
  "overrides": {
49
- "brace-expansion": "5.0.8"
49
+ "brace-expansion": "5.0.9"
50
50
  },
51
51
  "jsdelivr": "dist/iife/sdk.js",
52
52
  "unpkg": "dist/iife/sdk.js"
package/types/client.d.ts CHANGED
@@ -110,6 +110,7 @@ declare class Client {
110
110
  endpointRealtime: string;
111
111
  project: string;
112
112
  key: string;
113
+ organization: string;
113
114
  jwt: string;
114
115
  bearer: string;
115
116
  locale: string;
@@ -194,6 +195,16 @@ declare class Client {
194
195
  * @return {this}
195
196
  */
196
197
  setKey(value: string): this;
198
+ /**
199
+ * Set Organization
200
+ *
201
+ * Your organization ID
202
+ *
203
+ * @param value string
204
+ *
205
+ * @return {this}
206
+ */
207
+ setOrganization(value: string): this;
197
208
  /**
198
209
  * Set JWT
199
210
  *
@@ -0,0 +1,5 @@
1
+ export declare enum InvalidationType {
2
+ Tag = "tag",
3
+ Path = "path",
4
+ All = "all"
5
+ }
@@ -97,6 +97,7 @@ export declare enum ProjectKeyScopes {
97
97
  WafRulesRead = "wafRules.read",
98
98
  WafRulesWrite = "wafRules.write",
99
99
  EventsRead = "events.read",
100
+ ProxyInvalidationsWrite = "proxy.invalidations.write",
100
101
  AppsRead = "apps.read",
101
102
  AppsWrite = "apps.write",
102
103
  Oauth2Read = "oauth2.read",
@@ -67,6 +67,9 @@ export declare enum QuerySuggestionResource {
67
67
  ShInstallations = "sh_installations",
68
68
  MigrationDatabases = "migrationdatabases",
69
69
  MigrationProjects = "migrationprojects",
70
+ AffiliateLinks = "affiliatelinks",
71
+ AffiliateReferrals = "affiliatereferrals",
72
+ AffiliateRewards = "affiliaterewards",
70
73
  Apps = "apps",
71
74
  AppSecrets = "appsecrets",
72
75
  AppInstallations = "appinstallations",
@@ -0,0 +1,21 @@
1
+ export declare enum UsageEventDimension {
2
+ Path = "path",
3
+ Method = "method",
4
+ Status = "status",
5
+ Service = "service",
6
+ ResourceType = "resourceType",
7
+ Country = "country",
8
+ ContinentCode = "continentCode",
9
+ City = "city",
10
+ Region = "region",
11
+ Hostname = "hostname",
12
+ Ip = "ip",
13
+ OsName = "osName",
14
+ ClientType = "clientType",
15
+ ClientName = "clientName",
16
+ DeviceName = "deviceName",
17
+ Sdk = "sdk",
18
+ SdkVersion = "sdkVersion",
19
+ TeamId = "teamId",
20
+ ResourceId = "resourceId"
21
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum UsageGaugeDimension {
2
+ ResourceId = "resourceId",
3
+ TeamId = "teamId",
4
+ Service = "service",
5
+ ResourceType = "resourceType",
6
+ Ordinal = "ordinal"
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum UsageInterval {
2
+ OneMinute = "1m",
3
+ FifteenMinutes = "15m",
4
+ ThirtyMinutes = "30m",
5
+ OneHour = "1h",
6
+ OneDay = "1d"
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum UsageOrderBy {
2
+ Time = "time",
3
+ Value = "value"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum UsageOrderDirection {
2
+ Asc = "asc",
3
+ Desc = "desc"
4
+ }